aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/support/warnings_helper.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/support/warnings_helper.py')
-rw-r--r--Lib/test/support/warnings_helper.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/support/warnings_helper.py b/Lib/test/support/warnings_helper.py
index a6e43dff200..5f6f14afd74 100644
--- a/Lib/test/support/warnings_helper.py
+++ b/Lib/test/support/warnings_helper.py
@@ -23,8 +23,7 @@ def check_syntax_warning(testcase, statement, errtext='',
testcase.assertEqual(len(warns), 1, warns)
warn, = warns
- testcase.assertTrue(issubclass(warn.category, SyntaxWarning),
- warn.category)
+ testcase.assertIsSubclass(warn.category, SyntaxWarning)
if errtext:
testcase.assertRegex(str(warn.message), errtext)
testcase.assertEqual(warn.filename, '<testcase>')