We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
self.assertNotHasAttr
1 parent 22214bb commit e48b0c6Copy full SHA for e48b0c6
Lib/test/test_interpreters/test_api.py
@@ -1711,7 +1711,7 @@ def test_capture_exception_unraisable_exception(self):
1711
formatter = lambda self: 1
1712
with support.catch_unraisable_exception() as cm:
1713
captured = self.capture_with_formatter(ValueError(), formatter)
1714
- self.assertNotHasAttr(captured, "errdisplay")
+ self.assertFalse(hasattr(captured, "errdisplay"))
1715
self.assertEqual(cm.unraisable.exc_type, TypeError)
1716
self.assertEqual(str(cm.unraisable.exc_value),
1717
"can only join an iterable")
0 commit comments