mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
There is no TestError, use TestFailed appropriately
This commit is contained in:
parent
8392f36579
commit
b1295da59e
3 changed files with 10 additions and 10 deletions
|
@ -785,7 +785,7 @@ def metaclass():
|
|||
c = C()
|
||||
try: c()
|
||||
except TypeError: pass
|
||||
else: raise TestError, "calling object w/o call method should raise TypeError"
|
||||
else: raise TestFailed, "calling object w/o call method should raise TypeError"
|
||||
|
||||
def pymods():
|
||||
if verbose: print "Testing Python subclass of module..."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue