]> granicus.if.org Git - python/commitdiff
use concise skipping
authorBenjamin Peterson <benjamin@python.org>
Thu, 6 May 2010 22:23:58 +0000 (22:23 +0000)
committerBenjamin Peterson <benjamin@python.org>
Thu, 6 May 2010 22:23:58 +0000 (22:23 +0000)
Lib/test/test_os.py

index 49c659127c9594775b106d959ed4ac2f212586b6..928ea1a7dbe69fc2eed2982f541f9546307a4bc3 100644 (file)
@@ -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)