summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-05-06 22:25:42 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-05-06 22:25:42 (GMT)
commit180799d4b39be181a52f72f27ff0bc5d0a151653 (patch)
tree9764ccc8ef132de4420cebb9fa86d1735f8adc75 /Lib/test/test_os.py
parent9eafe107832f3ef767628e0919cbea125b31d2d8 (diff)
downloadcpython-180799d4b39be181a52f72f27ff0bc5d0a151653.zip
cpython-180799d4b39be181a52f72f27ff0bc5d0a151653.tar.gz
cpython-180799d4b39be181a52f72f27ff0bc5d0a151653.tar.bz2
wrap long lines
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r--Lib/test/test_os.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 928ea1a..f4814fa 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -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)