We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4873dd8 commit 82d8292Copy full SHA for 82d8292
tests/test_reportlog.py
@@ -61,7 +61,11 @@ def test_warning():
61
result.stdout.fnmatch_lines([f"* generated report log file: {log_file}*"])
62
63
json_objs = [json.loads(x) for x in log_file.read_text().splitlines()]
64
- assert len(json_objs) == 14
+ if pytest.version_tuple[0] < 8:
65
+ assert len(json_objs) == 14
66
+ else:
67
+ # In pytest 8 it produces an extra CollectReport for the extra pytest.Directory being collected.
68
+ assert len(json_objs) == 15
69
70
# first line should be the session_start
71
session_start = json_objs[0]
0 commit comments