From c85c74cd08f619b69a61a0290c660d642a15e9d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Walter=20D=C3=B6rwald?= Date: Fri, 18 Nov 2005 16:51:05 +0000 Subject: Increase code coverage in Python/structmember.c from 33% to 40% (by forcing a call to the listmember() function). --- Lib/test/test_traceback.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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) -- cgit v0.12