We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 237a959 commit 622bb3eCopy full SHA for 622bb3e
tests/test_pytest_cov.py
@@ -1996,8 +1996,10 @@ def test_contexts(testdir, opts):
1996
data = coverage.CoverageData(".coverage")
1997
data.read()
1998
assert data.measured_contexts() == set(EXPECTED_CONTEXTS)
1999
- test_context_path = os.path.abspath("test_contexts.py")
2000
- assert data.measured_files() == {test_context_path}
+ measured = data.measured_files()
+ assert len(measured) == 1
2001
+ test_context_path = list(measured)[0]
2002
+ assert test_context_path.lower() == os.path.abspath("test_contexts.py").lower()
2003
2004
line_data = find_labels(contextful_tests, r"[crst]\d+(?:-\d+)?")
2005
for context, label in EXPECTED_CONTEXTS.items():
0 commit comments