Skip to content

Commit 66e4f8d

Browse files
committed
test: try to unflake a test
On 3.14t, this test fails occasionally: ``` > assert any(d < 50 * 1024 for d in deltas) E assert False E + where False = any(<generator object MemoryLeakTest.test_eval_codeobject_leak.<locals>.<genexpr> at 0x42d3c112300>) /home/runner/work/coveragepy/coveragepy/tests/test_oddball.py:242: AssertionError ----------------------------- Captured stdout call ----------------------------- Mem delta: 6912 Mem delta: 6912 Mem delta: 7808 Mem delta: 8916 Mem delta: 7936 Mem delta: 7808 Mem delta: 7936 Mem delta: 7808 Mem delta: 7936 Mem delta: 1728 ```
1 parent 9975d0c commit 66e4f8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_oddball.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def test_eval_codeobject_leak(self, branch: bool) -> None:
233233
# one of our loops only increased the footprint by a small amount.
234234
base = osinfo.process_ram()
235235
deltas = []
236-
for _ in range(10):
236+
for _ in range(30):
237237
self.check_coverage(code, lines=[1, 2, 3], missing="", branch=branch)
238238
now = osinfo.process_ram()
239239
deltas.append(now - base)

0 commit comments

Comments
 (0)