Rename the test_traceback_print() function to traceback_print() to prevent

test_capi from automatically calling the function.
This commit is contained in:
Brett Cannon 2008-04-28 04:50:06 +00:00
parent b8bdbc04e7
commit 8dc4303297
2 changed files with 5 additions and 5 deletions

View file

@ -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 @@ try:
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")