diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2019-09-14 08:58:21 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2019-09-14 08:58:21 -0400 |
commit | 15842b97cd9a7b9232936e4c558ddb2d27231412 (patch) | |
tree | 58583491ebdc7577f85b185ea9146fa20272e975 /tests/test_misc.py | |
parent | 3532b93a971bac212054b4e5669339303b794570 (diff) | |
download | python-coveragepy-git-15842b97cd9a7b9232936e4c558ddb2d27231412.tar.gz |
Polish up substitute_variables based on a lightning talk
Diffstat (limited to 'tests/test_misc.py')
-rw-r--r-- | tests/test_misc.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_misc.py b/tests/test_misc.py index d2777281..896dbf47 100644 --- a/tests/test_misc.py +++ b/tests/test_misc.py @@ -145,6 +145,7 @@ VARS = { ("Ill-formed: ${%5} ${{HI}} ${", "Ill-formed: ${%5} ${{HI}} ${"), ("Strict: ${FOO?} is there", "Strict: fooey is there"), ("Defaulted: ${WUT-missing}!", "Defaulted: missing!"), + ("Defaulted empty: ${WUT-}!", "Defaulted empty: !"), ]) def test_substitute_variables(before, after): assert substitute_variables(before, VARS) == after |