Restore the test of the random module after including "Random" in the
authorRaymond Hettinger <python@rcn.com>
Mon, 30 Dec 2002 07:04:47 +0000 (07:04 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 30 Dec 2002 07:04:47 +0000 (07:04 +0000)
ignore tuple.

The line, "from _random import Random as CoreGenerator", fools the test
code which expects CoreGenerator.__name__ to be "CoreGenerator" instead
of "Random".

Lib/test/test_pyclbr.py

index f06604b98bf98566863d5072ea8a2ac5758c02b2..8e3cfa34419d073d78591f1d8ee0312e53f96324 100644 (file)
@@ -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',