aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorHugo van Kemenade <1324225+hugovk@users.noreply.github.com>2025-01-13 13:05:02 +0200
committerGitHub <noreply@github.com>2025-01-13 11:05:02 +0000
commitafb9dc887c6e8ae17b6a54c6124399e8bdc82253 (patch)
tree7c84e8d2686a2d77af03f0ce2ea7cba58c2bdb83 /Lib/test/test_exceptions.py
parentddd959987c557beaf823b681bf5e5e573ad657ac (diff)
downloadcpython-afb9dc887c6e8ae17b6a54c6124399e8bdc82253.tar.gz
cpython-afb9dc887c6e8ae17b6a54c6124399e8bdc82253.zip
gh-128595: Add test class helper to force no terminal colour (#128687)
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r--Lib/test/test_exceptions.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index 6ccfa9575f8..206e22e791e 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -2274,6 +2274,7 @@ class SyntaxErrorTests(unittest.TestCase):
self.assertIn(expected, err.getvalue())
the_exception = exc
+ @force_not_colorized
def test_subclass(self):
class MySyntaxError(SyntaxError):
pass