8000 gh-127873: Only check `sys.flags.ignore_environment` for `PYTHON*` env vars by hugovk · Pull Request #127877 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-127873: Only check sys.flags.ignore_environment for PYTHON* env vars #127877

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Jan 21, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix merge conflict resolution
  • Loading branch information
hugovk authored Jan 13, 2025
commit 76f656e5f6efb33142d4fa6e96928d8779551507
21 changes: 0 additions & 21 deletions Lib/test/support/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2857,27 +2857,6 @@ def wrapper(*args, **kwargs):
return wrapper


def force_not_colorized_test_class(cls):
"""Force the terminal not to be colorized."""
original_setup = cls.setUp
original_teardown = cls.tearDown

@functools.wraps(cls.setUp)
def setUp_wrapper(self, *args, **kwargs):
self._original_fn, self._variables = _disable_terminal_color()

return original_setup(self, *args, **kwargs)

@functools.wraps(cls.tearDown)
def tearDown_wrapper(self, *args, **kwargs):
_re_enable_terminal_color(self._original_fn, self._variables)
return original_teardown(self, *args, **kwargs)

cls.setUp = setUp_wrapper
cls.tearDown = tearDown_wrapper
return cls


def force_not_colorized_test_class(cls):
"""Force the terminal not to be colorized for the entire test class."""
original_setUpClass = cls.setUpClass
Expand Down
Loading
0