mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
fix strange errors when setting attributes on tracebacks #4034
This commit is contained in:
parent
7c33bd5ecb
commit
6ffe852f90
4 changed files with 22 additions and 23 deletions
|
@ -111,14 +111,6 @@ def test():
|
|||
os.unlink(os.path.join(testdir, f))
|
||||
os.rmdir(testdir)
|
||||
|
||||
def test_members(self):
|
||||
# Covers Python/structmember.c::listmembers()
|
||||
try:
|
||||
1/0
|
||||
except:
|
||||
import sys
|
||||
sys.exc_traceback.__members__
|
||||
|
||||
def test_base_exception(self):
|
||||
# Test that exceptions derived from BaseException are formatted right
|
||||
e = KeyboardInterrupt()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue