Skip to content
Prev Previous commit
Next Next commit
Fixes CI
  • Loading branch information
sobolevn committed Sep 15, 2021
commit bc48ca6dee5b487264dfdee86eb10794541504dc
7 changes: 0 additions & 7 deletions extra_tests/snippets/builtin_exceptions.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import builtins
import platform
import sys
import os


# Regression to:
Expand Down Expand Up @@ -189,12 +188,6 @@ class SubError(MyError):
assert OSError.strerror
assert OSError(1, 2).errno
assert OSError(1, 2).strerror
if os.name == 'nt':
assert OSError.winerror
assert OSError(1, 2).winerror
else:
assert getattr(OSError, 'winerror', None) is None
assert getattr(OSError(1, 2), 'winerror', None) is None

# Custom `__new__` and `__init__`:
assert ImportError.__init__.__qualname__ == 'ImportError.__init__'
Expand Down