summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_curses.py
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-08-29 23:37:32 (GMT)
committerCollin Winter <collinw@gmail.com>2007-08-29 23:37:32 (GMT)
commit3add4d78ff9f5de02e2c0de09efe9a9b5317539f (patch)
treec61c6a122b33537814bcc643300f10759fa81010 /Lib/test/test_curses.py
parente0281cab810c30a23cf2490704e0f85aa4751e83 (diff)
downloadcpython-3add4d78ff9f5de02e2c0de09efe9a9b5317539f.zip
cpython-3add4d78ff9f5de02e2c0de09efe9a9b5317539f.tar.gz
cpython-3add4d78ff9f5de02e2c0de09efe9a9b5317539f.tar.bz2
Raise statement normalization in Lib/test/.
Diffstat (limited to 'Lib/test/test_curses.py')
-rw-r--r--Lib/test/test_curses.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_curses.py b/Lib/test/test_curses.py
index ee679e7..64d6536 100644
--- a/Lib/test/test_curses.py
+++ b/Lib/test/test_curses.py
@@ -22,7 +22,7 @@ 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 TestSkipped, "$TERM=%r, calling initscr() may cause exit" % term
+ raise TestSkipped("$TERM=%r, calling initscr() may cause exit" % term)
if sys.platform == "cygwin":
raise TestSkipped("cygwin's curses mostly just hangs")
@@ -72,7 +72,7 @@ def window_funcs(stdscr):
except TypeError:
pass
else:
- raise RuntimeError, "Expected win.border() to raise TypeError"
+ raise RuntimeError("Expected win.border() to raise TypeError")
stdscr.clearok(1)
@@ -243,7 +243,7 @@ def test_userptr_without_set(stdscr):
# try to access userptr() before calling set_userptr() -- segfaults
try:
p.userptr()
- raise RuntimeError, 'userptr should fail since not set'
+ raise RuntimeError('userptr should fail since not set')
except curses.panel.error:
pass
@@ -253,7 +253,7 @@ def test_resize_term(stdscr):
curses.resizeterm(lines - 1, cols + 1)
if curses.LINES != lines - 1 or curses.COLS != cols + 1:
- raise RuntimeError, "Expected resizeterm to update LINES and COLS"
+ raise RuntimeError("Expected resizeterm to update LINES and COLS")
def main(stdscr):
curses.savetty()