Skip to content

Commit e48b0c6

Browse files
authored
Use legacy alternative to self.assertNotHasAttr
1 parent 22214bb commit e48b0c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_interpreters/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1711,7 +1711,7 @@ def test_capture_exception_unraisable_exception(self):
17111711
formatter = lambda self: 1
17121712
with support.catch_unraisable_exception() as cm:
17131713
captured = self.capture_with_formatter(ValueError(), formatter)
1714-
self.assertNotHasAttr(captured, "errdisplay")
1714+
self.assertFalse(hasattr(captured, "errdisplay"))
17151715
self.assertEqual(cm.unraisable.exc_type, TypeError)
17161716
self.assertEqual(str(cm.unraisable.exc_value),
17171717
"can only join an iterable")

0 commit comments

Comments
 (0)