]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-31027: Fix test_listcomps failure when run directly (#2939)
authorZackery Spytz <Osmunda46@gmail.com>
Sat, 29 Jul 2017 16:05:55 +0000 (10:05 -0600)
committerTerry Jan Reedy <tjreedy@udel.edu>
Sat, 29 Jul 2017 16:05:55 +0000 (12:05 -0400)
Bug appears to be incomplete copy-paste-edit.

Lib/test/test_listcomps.py

index 1f8265f077e662df3d1cb8bee9f0db59693926c6..ddb169fe58957c22e38593ee69acc8663024838d 100644 (file)
@@ -139,7 +139,7 @@ def test_main(verbose=None):
         import gc
         counts = [None] * 5
         for i in range(len(counts)):
-            support.run_doctest(test_genexps, verbose)
+            support.run_doctest(test_listcomps, verbose)
             gc.collect()
             counts[i] = sys.gettotalrefcount()
         print(counts)