From ecccafb2d4811b4f80f39ad0ce0614391665fc87 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Mon, 30 Dec 2002 07:04:47 +0000 Subject: [PATCH] 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". --- Lib/test/test_pyclbr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_pyclbr.py b/Lib/test/test_pyclbr.py index f06604b98b..8e3cfa3441 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', -- 2.50.1