fix strange errors when setting attributes on tracebacks #4034

This commit is contained in:
Benjamin Peterson 2009-03-18 20:52:15 +00:00
parent 7c33bd5ecb
commit 6ffe852f90
4 changed files with 22 additions and 23 deletions

View file

@ -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()