mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +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
|
@ -1,7 +1,7 @@
|
|||
import operator
|
||||
import unittest
|
||||
|
||||
from test import test_support
|
||||
from test import support
|
||||
|
||||
class Seq1:
|
||||
def __init__(self, lst):
|
||||
|
@ -465,14 +465,14 @@ def test_main(verbose=None):
|
|||
OperatorTestCase,
|
||||
)
|
||||
|
||||
test_support.run_unittest(*test_classes)
|
||||
support.run_unittest(*test_classes)
|
||||
|
||||
# verify reference counting
|
||||
if verbose and hasattr(sys, "gettotalrefcount"):
|
||||
import gc
|
||||
counts = [None] * 5
|
||||
for i in range(len(counts)):
|
||||
test_support.run_unittest(*test_classes)
|
||||
support.run_unittest(*test_classes)
|
||||
gc.collect()
|
||||
counts[i] = sys.gettotalrefcount()
|
||||
print(counts)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue