summaryrefslogtreecommitdiffhomepage
path: root/tests/test_util.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2017-10-16 15:24:04 -0700
committerJeff Forcier <jeff@bitprophet.org>2017-10-16 15:24:32 -0700
commit087444cf4cf3302908c9bda34f488b005df0ea8c (patch)
tree126d2a2fc5aafb1f5b3c9c8b16a40bd1e29fb991 /tests/test_util.py
parent28fc70affdddb80731d1a151eb8a0049c2eb411f (diff)
Dropped Python 2.6 so we can stop using u()/b() for literals.
Sadly we (ab?)use them in many more places, but hey, every little bit counts
Diffstat (limited to 'tests/test_util.py')
-rw-r--r--tests/test_util.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_util.py b/tests/test_util.py
index dfb4b466..cb326ff7 100644
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -469,11 +469,11 @@ Host param3 parara
self.assertRaises(Exception, conf._get_hosts, host)
def test_safe_string(self):
- vanilla = b("vanilla")
- has_bytes = b("has \7\3 bytes")
+ vanilla = b"vanilla"
+ has_bytes = b"has \7\3 bytes"
safe_vanilla = safe_string(vanilla)
safe_has_bytes = safe_string(has_bytes)
- expected_bytes = b("has %07%03 bytes")
+ expected_bytes = b"has %07%03 bytes"
err = "{!r} != {!r}"
msg = err.format(safe_vanilla, vanilla)
assert safe_vanilla == vanilla, msg