mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Raise statement normalization in Lib/test/.
This commit is contained in:
parent
e0281cab81
commit
3add4d78ff
47 changed files with 218 additions and 218 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue