From 9eafe107832f3ef767628e0919cbea125b31d2d8 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 6 May 2010 22:23:58 +0000 Subject: [PATCH] use concise skipping --- Lib/test/test_os.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 49c659127c9..928ea1a7dbe 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)