use concise skipping

This commit is contained in:
Benjamin Peterson 2010-05-06 22:23:58 +00:00
parent 17b490d706
commit 9eafe10783
1 changed files with 1 additions and 1 deletions

View 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)