From: Raymond Hettinger Date: Mon, 30 Dec 2002 07:04:47 +0000 (+0000) Subject: Restore the test of the random module after including "Random" in the X-Git-Tag: v2.3c1~2832 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ecccafb2d4811b4f80f39ad0ce0614391665fc87;p=thirdparty%2FPython%2Fcpython.git 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". --- diff --git a/Lib/test/test_pyclbr.py b/Lib/test/test_pyclbr.py index f06604b98bf9..8e3cfa34419d 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',