#2621 rename test.test_support to test.support

This commit is contained in:
Benjamin Peterson 2008-05-20 21:35:26 +00:00
parent 6a654814ea
commit ee8712cda4
358 changed files with 1308 additions and 1307 deletions

View file

@ -6,7 +6,7 @@ import time
import pickle
import warnings
from math import log, exp, sqrt, pi
from test import test_support
from test import support
class TestBasicOps(unittest.TestCase):
# Superclass with tests common to all generators.
@ -118,7 +118,7 @@ class TestBasicOps(unittest.TestCase):
("randv2_64.pck", 866),
("randv3.pck", 343)]
for file, value in files:
f = open(test_support.findfile(file),"rb")
f = open(support.findfile(file),"rb")
r = pickle.load(f)
f.close()
self.assertEqual(r.randrange(1000), value)
@ -474,14 +474,14 @@ def test_main(verbose=None):
else:
testclasses.append(SystemRandom_TestBasicOps)
test_support.run_unittest(*testclasses)
support.run_unittest(*testclasses)
# verify reference counting
import sys
if verbose and hasattr(sys, "gettotalrefcount"):
counts = [None] * 5
for i in range(len(counts)):
test_support.run_unittest(*testclasses)
support.run_unittest(*testclasses)
counts[i] = sys.gettotalrefcount()
print(counts)