summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_locale.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-03-26 21:10:30 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-03-26 21:10:30 (GMT)
commitbec087f29d7dca0aaf8f51be7d7c135e9b84e7f1 (patch)
treeb7e37c8e82279a3a58d768ec4a79fd51488521f7 /Lib/test/test_locale.py
parentad57d97596bb9466e6fce0c3dfcf436fd5c36ff9 (diff)
downloadcpython-bec087f29d7dca0aaf8f51be7d7c135e9b84e7f1.zip
cpython-bec087f29d7dca0aaf8f51be7d7c135e9b84e7f1.tar.gz
cpython-bec087f29d7dca0aaf8f51be7d7c135e9b84e7f1.tar.bz2
fix incorrect auto-translation of TestSkipped -> unittest.SkipTest
Diffstat (limited to 'Lib/test/test_locale.py')
-rw-r--r--Lib/test/test_locale.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_locale.py b/Lib/test/test_locale.py
index 84865f6..2b27bac 100644
--- a/Lib/test/test_locale.py
+++ b/Lib/test/test_locale.py
@@ -1,4 +1,4 @@
-from test.test_support import run_unittest, verbose, SkipTest
+from test.test_support import run_unittest, verbose
import unittest
import locale
import sys
@@ -10,7 +10,7 @@ enUS_locale = None
def get_enUS_locale():
global enUS_locale
if sys.platform == 'darwin':
- raise SkipTest("Locale support on MacOSX is minimal")
+ raise unittest.SkipTest("Locale support on MacOSX is minimal")
if sys.platform.startswith("win"):
tlocs = ("En", "English")
else:
@@ -23,7 +23,7 @@ def get_enUS_locale():
continue
break
else:
- raise SkipTest(
+ raise unittest.SkipTest(
"Test locale not supported (tried %s)" % (', '.join(tlocs)))
enUS_locale = tloc
locale.setlocale(locale.LC_NUMERIC, oldlocale)