diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-03-26 21:10:30 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-03-26 21:10:30 (GMT) |
commit | bec087f29d7dca0aaf8f51be7d7c135e9b84e7f1 (patch) | |
tree | b7e37c8e82279a3a58d768ec4a79fd51488521f7 /Lib/test/test_curses.py | |
parent | ad57d97596bb9466e6fce0c3dfcf436fd5c36ff9 (diff) | |
download | cpython-bec087f29d7dca0aaf8f51be7d7c135e9b84e7f1.zip cpython-bec087f29d7dca0aaf8f51be7d7c135e9b84e7f1.tar.gz cpython-bec087f29d7dca0aaf8f51be7d7c135e9b84e7f1.tar.bz2 |
fix incorrect auto-translation of TestSkipped -> unittest.SkipTest
Diffstat (limited to 'Lib/test/test_curses.py')
-rw-r--r-- | Lib/test/test_curses.py | 6 |
1 files changed, 3 insertions, 3 deletions
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 @@ import curses.panel # '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" |