Skip to content

Commit f3f4a29

Browse files
committed
wording, remove hardcoded test
1 parent 7fabb94 commit f3f4a29

2 files changed

Lines changed: 1 addition & 28 deletions

File tree

‎hypothesis/RELEASE.rst‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
RELEASE_TYPE: patch
22

3-
This patch fixes quadratic-time behaviour when summarising the statistics of a
4-
test run, which Hypothesis does for every test when running under :pypi:`pytest`.
5-
With hundreds of thousands of examples, this could add minutes of apparent hang
6-
after the last example had run.
3+
This patch fixes quadratic-time behaviour when summarising the statistics of a test run, which Hypothesis does for every test when running under :pypi:`pytest`. This avoids an apparent hang after the last test case with a high number of test cases (>100k).

‎hypothesis/tests/cover/test_statistical_events.py‎

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -312,27 +312,3 @@ def very_distinguishable_name(n):
312312
for tc in stats["generate-phase"]["test-cases"]:
313313
for e in tc["events"]:
314314
assert "reject() in very_distinguishable_name" in e
315-
316-
317-
def test_describe_statistics_counts_events_across_test_cases():
318-
events = [["a"], ["b", "a"], [], ["c", "b", "a"]]
319-
cases = [
320-
{"status": "valid", "runtime": 0.0, "drawtime": 0.0, "gctime": 0.0, "events": e}
321-
for e in events
322-
]
323-
stats = {
324-
"generate-phase": {
325-
"duration-seconds": 1.0,
326-
"test-cases": cases,
327-
"distinct-failures": 0,
328-
"shrinks-successful": 0,
329-
},
330-
"stopped-because": "settings.max_examples=4",
331-
}
332-
expected = [
333-
" - Events:",
334-
" * 75.00%, a",
335-
" * 50.00%, b",
336-
" * 25.00%, c",
337-
]
338-
assert "\n".join(expected) in describe_statistics(stats)

0 commit comments

Comments
 (0)