str is a kind of weird future thing; coerce another way

This commit is contained in:
Jean-Paul Calderone 2021-08-11 14:25:47 -04:00
parent 4d41e30ce9
commit 1d75bbfd72

View File

@ -103,7 +103,7 @@ class ParseOptionsTests(SyncTestCase):
except usage.error as e:
self.assertEqual(
b"Unknown command: " + tricky.encode("utf-8"),
str(e)
b"{}".format(e),
)