Skip to content

Commit a01edd4

Browse files
committed
use better conftest
1 parent b292e82 commit a01edd4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

py/noxfile.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,11 @@ def _run_tests(session, test_path, ignore_path="", ignore_paths=None, env=None):
388388
# Run the tests in the src directory
389389
test_args = [
390390
"pytest",
391+
# Disable the braintrust pytest plugin (registered via pytest11 entry
392+
# point) to avoid ImportPathMismatchError when the installed package
393+
# and the source tree both contain braintrust/conftest.py.
394+
"-p",
395+
"no:braintrust",
391396
f"src/{test_path}",
392397
]
393398
for path in paths_to_ignore:

0 commit comments

Comments
 (0)