wrap long lines
authorBenjamin Peterson <benjamin@python.org>
Thu, 6 May 2010 22:25:42 +0000 (22:25 +0000)
committerBenjamin Peterson <benjamin@python.org>
Thu, 6 May 2010 22:25:42 +0000 (22:25 +0000)
Lib/test/test_os.py

index 928ea1a7dbe69fc2eed2982f541f9546307a4bc3..f4814fa36a32f7cd4677620e90b754341a8ee878 100644 (file)
@@ -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)