diff --git a/tests/misc/non_compliant.py b/tests/misc/non_compliant.py index ecd4f10391..4c06977d11 100644 --- a/tests/misc/non_compliant.py +++ b/tests/misc/non_compliant.py @@ -54,7 +54,7 @@ except NotImplementedError: # str(...) with keywords not implemented try: str(b"abc", encoding="utf8") -except TypeError: +except NotImplementedError: print("TypeError") # str.rsplit(None, n) not implemented