summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_regrtest.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2022-04-25 14:35:14 (GMT)
committerGitHub <noreply@github.com>2022-04-25 14:35:14 (GMT)
commit54d068adfbf2b822bcbf90dac9b3f6684cec0f99 (patch)
treec39e59e1b4d10a1a46bb3e241cccbcbfc235d2d0 /Lib/test/test_regrtest.py
parent93d280141c369fd1906569ff605148b6e22f6a43 (diff)
downloadcpython-54d068adfbf2b822bcbf90dac9b3f6684cec0f99.zip
cpython-54d068adfbf2b822bcbf90dac9b3f6684cec0f99.tar.gz
cpython-54d068adfbf2b822bcbf90dac9b3f6684cec0f99.tar.bz2
gh-91904: Fix setting envvar PYTHONREGRTEST_UNICODE_GUARD (GH-91905)
It always failed on non-UTF-8 locale and prevented running regrtests.
Diffstat (limited to 'Lib/test/test_regrtest.py')
-rw-r--r--Lib/test/test_regrtest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_regrtest.py b/Lib/test/test_regrtest.py
index babc8a6..15e2f89 100644
--- a/Lib/test/test_regrtest.py
+++ b/Lib/test/test_regrtest.py
@@ -1339,7 +1339,7 @@ class ArgsTestCase(BaseTestCase):
def test_unicode_guard_env(self):
guard = os.environ.get(setup.UNICODE_GUARD_ENV)
self.assertIsNotNone(guard, f"{setup.UNICODE_GUARD_ENV} not set")
- if guard != "\N{SMILING FACE WITH SUNGLASSES}":
+ if guard.isascii():
# Skip to signify that the env var value was changed by the user;
# possibly to something ASCII to work around Unicode issues.
self.skipTest("Modified guard")