We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
try:
1 parent 4bb81ee commit 5dd9af2Copy full SHA for 5dd9af2
1 file changed
Lib/test/support/os_helper.py
@@ -722,15 +722,15 @@ def __exit__(self, *ignore_exc):
722
723
import ctypes
724
kernel32 = ctypes.WinDLL('kernel32', use_last_error=True)
725
-except (ImportError, AttributeError):
726
- def subst_drive(path):
727
- raise unittest.SkipTest('ctypes or kernel32 is not available')
728
-else:
+
729
ERROR_FILE_NOT_FOUND = 2
730
DDD_REMOVE_DEFINITION = 2
731
DDD_EXACT_MATCH_ON_REMOVE = 4
732
DDD_NO_BROADCAST_SYSTEM = 8
733
-
+except (ImportError, AttributeError):
+ def subst_drive(path):
+ raise unittest.SkipTest('ctypes or kernel32 is not available')
+else:
734
@contextlib.contextmanager
735
def subst_drive(path):
736
"""Temporarily yield a substitute drive for a given path."""
0 commit comments