summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_traceback.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_traceback.py b/Lib/test/test_traceback.py
index 17ed022..29a120f 100644
--- a/Lib/test/test_traceback.py
+++ b/Lib/test/test_traceback.py
@@ -85,6 +85,14 @@ 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_main():
run_unittest(TracebackCases)