diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2017-10-10 14:41:59 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2017-10-10 14:41:59 -0700 |
commit | eea4f62f0fb5a14eece79565145fb5589008c7e1 (patch) | |
tree | ed4c2f0f166e424004e9dd52a2251f57e4890b54 /tests/test_util.py | |
parent | 2f4766f7ef6442004fc9de72504de45bb577847b (diff) |
Use new(er)-style string formatting, {} instead of {0}
Diffstat (limited to 'tests/test_util.py')
-rw-r--r-- | tests/test_util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_util.py b/tests/test_util.py index 7880e156..633c3345 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -474,7 +474,7 @@ Host param3 parara safe_vanilla = safe_string(vanilla) safe_has_bytes = safe_string(has_bytes) expected_bytes = b("has %07%03 bytes") - err = "{0!r} != {1!r}" + err = "{!r} != {!r}" msg = err.format(safe_vanilla, vanilla) assert safe_vanilla == vanilla, msg msg = err.format(safe_has_bytes, expected_bytes) |