Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add check to verify no exception thrown
  • Loading branch information
MonadChains committed Sep 7, 2022
commit 990b6d9007997a6ccfe0fd53a260c5abfbdabe16
3 changes: 2 additions & 1 deletion Lib/test/test_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ def __delattr__(self, *args):
self.assertCallStack([('__delattr__', (testme, "cardinal"))])

def testHasAttrString(self):

import sys
from test.support import import_helper
_testcapi = import_helper.import_module('_testcapi')

Expand All @@ -457,6 +457,7 @@ def __init__(self):
a = A()
self.assertEqual(_testcapi.hasattr_string(a, "attr"), True)
self.assertEqual(_testcapi.hasattr_string(a, "noattr"), False)
Comment thread
MonadChains marked this conversation as resolved.
self.assertEqual(sys.exc_info(), (None, None, None))

def testDel(self):
x = []
Expand Down