diff Lib/test/test_traceback.py @ 46592:4e47548edd36 legacy-trunk

Rename the test_traceback_print() function to traceback_print() to prevent test_capi from automatically calling the function.
author Brett Cannon <bcannon@gmail.com>
date Mon, 28 Apr 2008 04:50:06 +0000
parents 07a4e1710262
children 4f804ee772eb
line wrap: on
line diff
--- a/Lib/test/test_traceback.py	Mon Apr 28 03:27:53 2008 +0000
+++ b/Lib/test/test_traceback.py	Mon Apr 28 04:50:06 2008 +0000
@@ -1,6 +1,6 @@
 """Test cases for traceback module"""
 
-from _testcapi import test_traceback_print
+from _testcapi import traceback_print
 from StringIO import StringIO
 import sys
 import unittest
@@ -13,7 +13,7 @@
 except KeyError:
     type_, value, tb = sys.exc_info()
     file_ = StringIO()
-    test_traceback_print(tb, file_)
+    traceback_print(tb, file_)
     example_traceback = file_.getvalue()
 else:
     raise Error("unable to create test traceback string")