summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pyclbr.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-12-30 07:04:47 (GMT)
committerRaymond Hettinger <python@rcn.com>2002-12-30 07:04:47 (GMT)
commitecccafb2d4811b4f80f39ad0ce0614391665fc87 (patch)
treedbefd43184a8384c855a4ae001d42018670d29bb /Lib/test/test_pyclbr.py
parentd6d7cfaadaffd17dcdfea9df975e17db8e65555b (diff)
downloadcpython-ecccafb2d4811b4f80f39ad0ce0614391665fc87.zip
cpython-ecccafb2d4811b4f80f39ad0ce0614391665fc87.tar.gz
cpython-ecccafb2d4811b4f80f39ad0ce0614391665fc87.tar.bz2
Restore the test of the random module after including "Random" in the
ignore tuple. The line, "from _random import Random as CoreGenerator", fools the test code which expects CoreGenerator.__name__ to be "CoreGenerator" instead of "Random".
Diffstat (limited to 'Lib/test/test_pyclbr.py')
-rw-r--r--Lib/test/test_pyclbr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_pyclbr.py b/Lib/test/test_pyclbr.py
index f06604b..8e3cfa3 100644
--- a/Lib/test/test_pyclbr.py
+++ b/Lib/test/test_pyclbr.py
@@ -143,7 +143,7 @@ class PyclbrTest(TestCase):
cm = self.checkModule
# These were once about the 10 longest modules
- ## cm('random') # This test crashes (probably due to the "import as").
+ cm('random', ignore=('Random')) # from _random import Random as CoreGenerator
cm('cgi', ignore=('log',)) # set with = in module
cm('mhlib')
cm('urllib', ignore=('getproxies_registry',