aboutsummaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-05-06 22:23:58 +0000
committerBenjamin Peterson <benjamin@python.org>2010-05-06 22:23:58 +0000
commit9eafe107832f3ef767628e0919cbea125b31d2d8 (patch)
treed01ceee3f3156f82f9299f3e63ddccd44baf34c7 /Lib
parent17b490d7064ac18e18e6a141f7b7319feb08c08d (diff)
downloadcpython3-9eafe107832f3ef767628e0919cbea125b31d2d8.tar.gz
use concise skipping
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_os.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 49c659127c..928ea1a7db 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -449,7 +449,7 @@ class EnvironTests(mapping_tests.BasicTestMappingProtocol):
try:
value_bytes = value.encode(sys.getfilesystemencoding(), 'surrogateescape')
except UnicodeEncodeError:
- raise unittest.SkipTest("U+20AC character is not encodable to %s" % sys.getfilesystemencoding())
+ raise self.skip("U+20AC character is not encodable to %s" % sys.getfilesystemencoding())
os.environ['unicode'] = value
self.assertEquals(os.environ['unicode'], value)
self.assertEquals(os.environb[b'unicode'], value_bytes)