[Python-checkins] r80891 - python/branches/py3k/Lib/test/test_os.py

benjamin.peterson python-checkins at python.org
Fri May 7 00:25:42 CEST 2010


Author: benjamin.peterson
Date: Fri May  7 00:25:42 2010
New Revision: 80891

Log:
wrap long lines

Modified:
   python/branches/py3k/Lib/test/test_os.py

Modified: python/branches/py3k/Lib/test/test_os.py
==============================================================================
--- python/branches/py3k/Lib/test/test_os.py	(original)
+++ python/branches/py3k/Lib/test/test_os.py	Fri May  7 00:25:42 2010
@@ -447,9 +447,12 @@
         # 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)


More information about the Python-checkins mailing list