diff options
| author | Benjamin Peterson <benjamin@python.org> | 2008-05-20 21:35:26 (GMT) | 
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2008-05-20 21:35:26 (GMT) | 
| commit | ee8712cda46338d223509cc5751fd36509ad3860 (patch) | |
| tree | bb9d363b4276566415457980472001c7e3ec2bed /Lib/test/test_random.py | |
| parent | 6a654814ea3f3a918935762ffdcd33ae98e00278 (diff) | |
| download | cpython-ee8712cda46338d223509cc5751fd36509ad3860.zip cpython-ee8712cda46338d223509cc5751fd36509ad3860.tar.gz cpython-ee8712cda46338d223509cc5751fd36509ad3860.tar.bz2  | |
#2621 rename test.test_support to test.support
Diffstat (limited to 'Lib/test/test_random.py')
| -rw-r--r-- | Lib/test/test_random.py | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_random.py b/Lib/test/test_random.py index c02eb09..04c49fa 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)  | 
