gh-128595: Add test class helper to force no terminal colour (#128687)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
This commit is contained in:
Hugo van Kemenade 2025-01-13 13:05:02 +02:00 committed by GitHub
parent ddd959987c
commit afb9dc887c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 49 additions and 22 deletions

View file

@ -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