]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.6] bpo-31027: Fix test_listcomps failure when run directly (GH-2939) (#2945)
authorTerry Jan Reedy <tjreedy@udel.edu>
Sat, 29 Jul 2017 18:38:24 +0000 (14:38 -0400)
committerGitHub <noreply@github.com>
Sat, 29 Jul 2017 18:38:24 +0000 (14:38 -0400)
Bug appears to be incomplete copy-paste-edit.
(cherry picked from commit ceb93f4)

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)