Skip to content

Commit d3cdd6b

Browse files
committed
Apply review suggestions for test_regrtest
1 parent 5ffd268 commit d3cdd6b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Lib/test/test_regrtest.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1931,8 +1931,6 @@ def test_print_warning(self):
19311931

19321932
def test_unicode_guard_env(self):
19331933
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
19361934
self.assertIsNotNone(guard, f"{setup.UNICODE_GUARD_ENV} not set")
19371935
if guard.isascii():
19381936
# Skip to signify that the env var value was changed by the user;
@@ -2548,5 +2546,5 @@ def test_test_result_get_state(self):
25482546

25492547

25502548
if __name__ == '__main__':
2551-
os.environ['PYTHONREGRTEST_UNICODE_GUARD'] = 'some_value' # for test_unicode_guard_env
2549+
setup.setup_process()
25522550
unittest.main()

0 commit comments

Comments
 (0)