From: Benjamin Peterson Date: Thu, 6 May 2010 22:23:58 +0000 (+0000) Subject: use concise skipping X-Git-Tag: v3.2a1~900 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9eafe107832f3ef767628e0919cbea125b31d2d8;p=thirdparty%2FPython%2Fcpython.git use concise skipping --- diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 49c659127c95..928ea1a7dbe6 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)