summaryrefslogtreecommitdiff
path: root/tests/test_misc.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2019-09-14 08:58:21 -0400
committerNed Batchelder <ned@nedbatchelder.com>2019-09-14 08:58:21 -0400
commit15842b97cd9a7b9232936e4c558ddb2d27231412 (patch)
tree58583491ebdc7577f85b185ea9146fa20272e975 /tests/test_misc.py
parent3532b93a971bac212054b4e5669339303b794570 (diff)
downloadpython-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.py1
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