mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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:
parent
ddd959987c
commit
afb9dc887c
5 changed files with 49 additions and 22 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue