Skip to content

Commit 22cc41b

Browse files
authored
Merge pull request #797 from codeflash-ai/fix-pytest-rootdir
fix pytest_rootdir being set to None when pkl is not available
2 parents fae5b46 + 0651ea3 commit 22cc41b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

codeflash/discovery/discover_unit_tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ def discover_tests_pytest(
417417
with tmp_pickle_path.open(mode="rb") as f:
418418
exitcode, tests, pytest_rootdir = pickle.load(f)
419419
except Exception as e:
420+
tests, pytest_rootdir = [], None
420421
logger.exception(f"Failed to discover tests: {e}")
421422
exitcode = -1
422423
finally:

0 commit comments

Comments
 (0)