mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Rename the test_traceback_print() function to traceback_print() to prevent
test_capi from automatically calling the function.
This commit is contained in:
parent
b8bdbc04e7
commit
8dc4303297
2 changed files with 5 additions and 5 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue