aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorHugo van Kemenade <1324225+hugovk@users.noreply.github.com>2025-01-21 18:10:08 +0200
committerGitHub <noreply@github.com>2025-01-21 16:10:08 +0000
commit05d12eecbde1ace39826320cadf8e673d709b229 (patch)
tree2e767c71374e498d1f9759e2ba60177152b396d0 /Lib/test/test_exceptions.py
parent13475e0a5a317fa61f302f030b0effcb021873d6 (diff)
downloadcpython-05d12eecbde1ace39826320cadf8e673d709b229.tar.gz
cpython-05d12eecbde1ace39826320cadf8e673d709b229.zip
gh-127873: Only check `sys.flags.ignore_environment` for `PYTHON*` env vars (#127877)
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r--Lib/test/test_exceptions.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index 206e22e791e..2d324827451 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -1465,6 +1465,7 @@ class ExceptionTests(unittest.TestCase):
@cpython_only
@unittest.skipIf(_testcapi is None, "requires _testcapi")
+ @force_not_colorized
def test_recursion_normalizing_infinite_exception(self):
# Issue #30697. Test that a RecursionError is raised when
# maximum recursion depth has been exceeded when creating
@@ -2180,6 +2181,7 @@ class AssertionErrorTests(unittest.TestCase):
self.assertEqual(result[-len(expected):], expected)
+@support.force_not_colorized_test_class
class SyntaxErrorTests(unittest.TestCase):
maxDiff = None