Commit 7e9bbf6d authored by Benjamin Peterson's avatar Benjamin Peterson

wrap long lines

parent 6f275026
......@@ -447,9 +447,12 @@ class EnvironTests(mapping_tests.BasicTestMappingProtocol):
# os.environ -> os.environb
value = 'euro\u20ac'
try:
value_bytes = value.encode(sys.getfilesystemencoding(), 'surrogateescape')
value_bytes = value.encode(sys.getfilesystemencoding(),
'surrogateescape')
except UnicodeEncodeError:
raise self.skip("U+20AC character is not encodable to %s" % sys.getfilesystemencoding())
msg = "U+20AC character is not encodable to %s" % (
sys.getfilesystemencoding(),)
self.skip(msg)
os.environ['unicode'] = value
self.assertEquals(os.environ['unicode'], value)
self.assertEquals(os.environb[b'unicode'], value_bytes)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment