Kaydet (Commit) b26cc82b authored tarafından Terry Jan Reedy's avatar Terry Jan Reedy Kaydeden (comit) GitHub

[3.6] bpo-31027: Fix test_listcomps failure when run directly (GH-2939) (#2945)

Bug appears to be incomplete copy-paste-edit.
(cherry picked from commit ceb93f45)
üst 8364feff
...@@ -139,7 +139,7 @@ def test_main(verbose=None): ...@@ -139,7 +139,7 @@ def test_main(verbose=None):
import gc import gc
counts = [None] * 5 counts = [None] * 5
for i in range(len(counts)): for i in range(len(counts)):
support.run_doctest(test_genexps, verbose) support.run_doctest(test_listcomps, verbose)
gc.collect() gc.collect()
counts[i] = sys.gettotalrefcount() counts[i] = sys.gettotalrefcount()
print(counts) print(counts)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment