diff options
author | Collin Winter <collinw@gmail.com> | 2007-08-29 23:37:32 (GMT) |
---|---|---|
committer | Collin Winter <collinw@gmail.com> | 2007-08-29 23:37:32 (GMT) |
commit | 3add4d78ff9f5de02e2c0de09efe9a9b5317539f (patch) | |
tree | c61c6a122b33537814bcc643300f10759fa81010 /Lib/test/test_largefile.py | |
parent | e0281cab810c30a23cf2490704e0f85aa4751e83 (diff) | |
download | cpython-3add4d78ff9f5de02e2c0de09efe9a9b5317539f.zip cpython-3add4d78ff9f5de02e2c0de09efe9a9b5317539f.tar.gz cpython-3add4d78ff9f5de02e2c0de09efe9a9b5317539f.tar.bz2 |
Raise statement normalization in Lib/test/.
Diffstat (limited to 'Lib/test/test_largefile.py')
-rw-r--r-- | Lib/test/test_largefile.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_largefile.py b/Lib/test/test_largefile.py index a0933fe..a54a833 100644 --- a/Lib/test/test_largefile.py +++ b/Lib/test/test_largefile.py @@ -44,8 +44,8 @@ else: except (IOError, OverflowError): f.close() os.unlink(test_support.TESTFN) - raise test_support.TestSkipped, \ - "filesystem does not have largefile support" + raise test_support.TestSkipped( + "filesystem does not have largefile support") else: f.close() @@ -56,8 +56,8 @@ def expect(got_this, expect_this): if got_this != expect_this: if test_support.verbose: print('no') - raise test_support.TestFailed, 'got %r, but expected %r' %\ - (got_this, expect_this) + raise test_support.TestFailed('got %r, but expected %r' + % (got_this, expect_this)) else: if test_support.verbose: print('yes') |