mirror of
https://github.com/python/cpython.git
synced 2025-11-01 22:21:35 +00:00
gh-102799: use sys.exception() instead of sys.exc_info() in tests (#103293)
This commit is contained in:
parent
a44568b80d
commit
482b6eeadc
12 changed files with 68 additions and 71 deletions
|
|
@ -457,7 +457,7 @@ def __init__(self):
|
|||
a = A()
|
||||
self.assertEqual(_testcapi.hasattr_string(a, "attr"), True)
|
||||
self.assertEqual(_testcapi.hasattr_string(a, "noattr"), False)
|
||||
self.assertEqual(sys.exc_info(), (None, None, None))
|
||||
self.assertIsNone(sys.exception())
|
||||
|
||||
def testDel(self):
|
||||
x = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue