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.
1 parent 5ffd268 commit d3cdd6bCopy full SHA for d3cdd6b
1 file changed
Lib/test/test_regrtest.py
@@ -1931,8 +1931,6 @@ def test_print_warning(self):
1931
1932
def test_unicode_guard_env(self):
1933
guard = os.environ.get(setup.UNICODE_GUARD_ENV)
1934
- # if you run the test directly,
1935
- # then look at the if __name__ == '__main__' of this file
1936
self.assertIsNotNone(guard, f"{setup.UNICODE_GUARD_ENV} not set")
1937
if guard.isascii():
1938
# Skip to signify that the env var value was changed by the user;
@@ -2548,5 +2546,5 @@ def test_test_result_get_state(self):
2548
2546
2549
2547
2550
if __name__ == '__main__':
2551
- os.environ['PYTHONREGRTEST_UNICODE_GUARD'] = 'some_value' # for test_unicode_guard_env
+ setup.setup_process()
2552
unittest.main()
0 commit comments