Skip to content

Commit a24c3e5

Browse files
committed
add more debugging
1 parent a6e034a commit a24c3e5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

hypothesis-python/tests/nocover/test_scrutineer.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@
1010

1111
import json
1212
import sys
13+
import sysconfig
1314

1415
import pytest
1516

1617
from hypothesis import given, note, settings, strategies as st
1718
from hypothesis.internal.compat import PYPY
1819
from hypothesis.internal.scrutineer import make_report
20+
from hypothesis.vendor import pretty
1921

2022
# We skip tracing for explanations under PyPy, where it has a large performance
2123
# impact, or if there is already a trace function (e.g. coverage or a debugger)
@@ -138,7 +140,8 @@ def test_report_sort(random):
138140
f"{json.__file__}:43",
139141
]
140142

141-
note(f"actual lines: {report_lines}")
142-
note(f"expected lines: {expected_lines}")
143+
note(f"sysconfig.get_paths(): {pretty.pretty(sysconfig.get_paths())}")
144+
note(f"actual lines: {pretty.pretty(report_lines)}")
145+
note(f"expected lines: {pretty.pretty(expected_lines)}")
143146

144147
assert report_lines == expected_lines

0 commit comments

Comments
 (0)