mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
#2621 rename test.test_support to test.support
This commit is contained in:
parent
6a654814ea
commit
ee8712cda4
358 changed files with 1308 additions and 1307 deletions
|
@ -2,7 +2,7 @@
|
|||
# these are all functions _testcapi exports whose name begins with 'test_'.
|
||||
|
||||
import sys
|
||||
from test import test_support
|
||||
from test import support
|
||||
import _testcapi
|
||||
|
||||
def test_main():
|
||||
|
@ -10,13 +10,13 @@ def test_main():
|
|||
for name in dir(_testcapi):
|
||||
if name.startswith('test_'):
|
||||
test = getattr(_testcapi, name)
|
||||
if test_support.verbose:
|
||||
if support.verbose:
|
||||
print("internal", name)
|
||||
test()
|
||||
|
||||
# some extra thread-state tests driven via _testcapi
|
||||
def TestThreadState():
|
||||
if test_support.verbose:
|
||||
if support.verbose:
|
||||
print("auto-thread-state")
|
||||
|
||||
idents = []
|
||||
|
@ -29,7 +29,7 @@ def test_main():
|
|||
time.sleep(1)
|
||||
# Check our main thread is in the list exactly 3 times.
|
||||
if idents.count(thread.get_ident()) != 3:
|
||||
raise test_support.TestFailed(
|
||||
raise support.TestFailed(
|
||||
"Couldn't find main thread correctly in the list")
|
||||
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue