Remove references to old-style classes in a couple error messages
These don't exist in Python 3.
This commit is contained in:
@@ -151,7 +151,7 @@ class WarningsChecker(WarningsRecorder):
|
||||
def __init__(self, expected_warning=None, match_expr=None):
|
||||
super().__init__()
|
||||
|
||||
msg = "exceptions must be old-style classes or derived from Warning, not %s"
|
||||
msg = "exceptions must be derived from Warning, not %s"
|
||||
if isinstance(expected_warning, tuple):
|
||||
for exc in expected_warning:
|
||||
if not inspect.isclass(exc):
|
||||
|
||||
Reference in New Issue
Block a user