mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
@ -125,7 +125,7 @@ class ThreadableTest:
|
|||
self.client_ready.set()
|
||||
self.clientSetUp()
|
||||
if not hasattr(test_func, '__call__'):
|
||||
raise TypeError, "test_func must be a callable function"
|
||||
raise TypeError("test_func must be a callable function")
|
||||
try:
|
||||
test_func()
|
||||
except Exception as strerror:
|
||||
|
@ -133,7 +133,7 @@ class ThreadableTest:
|
|||
self.clientTearDown()
|
||||
|
||||
def clientSetUp(self):
|
||||
raise NotImplementedError, "clientSetUp must be implemented."
|
||||
raise NotImplementedError("clientSetUp must be implemented.")
|
||||
|
||||
def clientTearDown(self):
|
||||
self.done.set()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue