[Python-checkins] r80890 - python/branches/py3k/Lib/test/test_os.py
benjamin.peterson
python-checkins at python.org
Fri May 7 00:23:58 CEST 2010
Author: benjamin.peterson
Date: Fri May 7 00:23:58 2010
New Revision: 80890
Log:
use concise skipping
Modified:
python/branches/py3k/Lib/test/test_os.py
Modified: python/branches/py3k/Lib/test/test_os.py
==============================================================================
--- python/branches/py3k/Lib/test/test_os.py (original)
+++ python/branches/py3k/Lib/test/test_os.py Fri May 7 00:23:58 2010
@@ -449,7 +449,7 @@
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)
More information about the Python-checkins
mailing list