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 9a7dec3 commit 8cf29adCopy full SHA for 8cf29ad
pytest_perf/plugin.py
@@ -14,11 +14,11 @@
14
from pytest_perf import runner
15
16
17
-def pytest_collect_file(parent, path):
18
- if path.basename.endswith('.py') and 'pytest_perf' in path.read_text(
+def pytest_collect_file(parent, file_path):
+ if file_path.stem.endswith('.py') and 'pytest_perf' in file_path.read_text(
19
encoding='utf-8'
20
):
21
- return File.from_parent(parent, fspath=path)
+ return File.from_parent(parent, path=file_path)
22
23
24
def pytest_terminal_summary(terminalreporter, config):
0 commit comments