-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit 'bbe8e80bcbafff8cf3d135d17a8526c8ac5f4b27' of https://gi…
…thub.com/pypa/distutils into refresh-distutils
- Loading branch information
Showing
18 changed files
with
120 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# flake8: noqa | ||
|
||
import contextlib | ||
|
||
try: | ||
from test.support.warnings_helper import check_warnings | ||
except (ModuleNotFoundError, ImportError): | ||
from test.support import check_warnings | ||
|
||
|
||
try: | ||
from test.support.os_helper import ( | ||
change_cwd, | ||
rmtree, | ||
EnvironmentVarGuard, | ||
TESTFN, | ||
unlink, | ||
skip_unless_symlink, | ||
temp_dir, | ||
create_empty_file, | ||
temp_cwd, | ||
) | ||
except (ModuleNotFoundError, ImportError): | ||
from test.support import ( | ||
change_cwd, | ||
rmtree, | ||
EnvironmentVarGuard, | ||
TESTFN, | ||
unlink, | ||
skip_unless_symlink, | ||
temp_dir, | ||
create_empty_file, | ||
temp_cwd, | ||
) | ||
|
||
|
||
# From Python 3.9 | ||
@contextlib.contextmanager | ||
def _save_restore_warnings_filters(): | ||
old_filters = warnings.filters[:] | ||
try: | ||
yield | ||
finally: | ||
warnings.filters[:] = old_filters | ||
|
||
|
||
try: | ||
from test.support.warnings_helper import save_restore_warnings_filters | ||
except (ModuleNotFoundError, ImportError): | ||
save_restore_warnings_filters = _save_restore_warnings_filters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.