mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
gh-91904: Fix setting envvar PYTHONREGRTEST_UNICODE_GUARD (GH-91905)
It always failed on non-UTF-8 locale and prevented running regrtests.
This commit is contained in:
parent
93d280141c
commit
54d068adfb
3 changed files with 8 additions and 5 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue