aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_json/test_fail.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_json/test_fail.py')
-rw-r--r--Lib/test/test_json/test_fail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_json/test_fail.py b/Lib/test/test_json/test_fail.py
index 7c1696cc66d..79c44af2fbf 100644
--- a/Lib/test/test_json/test_fail.py
+++ b/Lib/test/test_json/test_fail.py
@@ -102,7 +102,7 @@ class TestFail:
with self.assertRaisesRegex(TypeError,
'Object of type module is not JSON serializable') as cm:
self.dumps(sys)
- self.assertFalse(hasattr(cm.exception, '__notes__'))
+ self.assertNotHasAttr(cm.exception, '__notes__')
with self.assertRaises(TypeError) as cm:
self.dumps([1, [2, 3, sys]])