[3.13] gh-127873: Only check sys.flags.ignore_environment for PYTHON* env vars (GH-127877) (#129138)

This commit is contained in:
Hugo van Kemenade 2025-01-22 21:09:51 +02:00 committed by GitHub
parent f7f8b8b758
commit cc3dc8ab24
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 91 additions and 28 deletions

View file

@ -11,8 +11,14 @@ from http.client import HTTPException
import sys
import unicodedata
import unittest
from test.support import (open_urlresource, requires_resource, script_helper,
cpython_only, check_disallow_instantiation)
from test.support import (
open_urlresource,
requires_resource,
script_helper,
cpython_only,
check_disallow_instantiation,
force_not_colorized,
)
class UnicodeMethodsTest(unittest.TestCase):
@ -277,6 +283,7 @@ class UnicodeMiscTest(UnicodeDatabaseTest):
# Ensure that the type disallows instantiation (bpo-43916)
check_disallow_instantiation(self, unicodedata.UCD)
@force_not_colorized
def test_failed_import_during_compiling(self):
# Issue 4367
# Decoding \N escapes requires the unicodedata module. If it can't be