Just pass unicode at this layer

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

View File

@ -99,7 +99,7 @@ class ParseOptionsTests(SyncTestCase):
""" """
tricky = u"\u2621" tricky = u"\u2621"
try: try:
parse_options([unicode_to_argv(tricky)]) parse_options([tricky])
except usage.error as e: except usage.error as e:
self.assertEqual( self.assertEqual(
b"Unknown command: " + tricky.encode("utf-8"), b"Unknown command: " + tricky.encode("utf-8"),