summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_poll.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_poll.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_poll.py')
-rw-r--r--Lib/test/test_poll.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_poll.py b/Lib/test/test_poll.py
index 4801640..a6110e6 100644
--- a/Lib/test/test_poll.py
+++ b/Lib/test/test_poll.py
@@ -6,7 +6,7 @@ from test.test_support import TestSkipped, TESTFN, run_unittest
try:
select.poll
except AttributeError:
- raise TestSkipped, "select.poll not defined -- skipping test_poll"
+ raise TestSkipped("select.poll not defined -- skipping test_poll")
def find_ready_matching(ready, flag):
@@ -47,14 +47,14 @@ class PollTests(unittest.TestCase):
ready = p.poll()
ready_writers = find_ready_matching(ready, select.POLLOUT)
if not ready_writers:
- raise RuntimeError, "no pipes ready for writing"
+ raise RuntimeError("no pipes ready for writing")
wr = random.choice(ready_writers)
os.write(wr, MSG)
ready = p.poll()
ready_readers = find_ready_matching(ready, select.POLLIN)
if not ready_readers:
- raise RuntimeError, "no pipes ready for reading"
+ raise RuntimeError("no pipes ready for reading")
rd = random.choice(ready_readers)
buf = os.read(rd, MSG_LEN)
self.assertEqual(len(buf), MSG_LEN)