fix incorrect auto-translation of TestSkipped -> unittest.SkipTest
diff --git a/Lib/test/test_curses.py b/Lib/test/test_curses.py
index 9fe344a..26cfc81 100644
--- a/Lib/test/test_curses.py
+++ b/Lib/test/test_curses.py
@@ -16,16 +16,16 @@
# 'curses' resource be given on the regrtest command line using the -u
# option. If not available, nothing after this line will be executed.
-from test.test_support import requires, SkipTest
+from test.test_support import requires
requires('curses')
# XXX: if newterm was supported we could use it instead of initscr and not exit
term = os.environ.get('TERM')
if not term or term == 'unknown':
- raise SkipTest, "$TERM=%r, calling initscr() may cause exit" % term
+ raise unittest.SkipTest, "$TERM=%r, calling initscr() may cause exit" % term
if sys.platform == "cygwin":
- raise SkipTest("cygwin's curses mostly just hangs")
+ raise unittest.SkipTest("cygwin's curses mostly just hangs")
def window_funcs(stdscr):
"Test the methods of windows"