summaryrefslogtreecommitdiff
path: root/Lib/test/test_random.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_random.py')
-rw-r--r--Lib/test/test_random.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_random.py b/Lib/test/test_random.py
index c02eb09267..04c49fa670 100644
--- a/Lib/test/test_random.py
+++ b/Lib/test/test_random.py
@@ -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)