Skip to content

Commit ee20cd6

Browse files
cpcloudcursoragent
andcommitted
refactor(pathfinder): inline log filename into fixture
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent e83b6f5 commit ee20cd6

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

cuda_pathfinder/tests/conftest.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,10 @@
1010
_LOGGER_NAME = "cuda_pathfinder.test_info"
1111

1212

13-
def _info_summary_log_filename():
14-
strictness = os.environ.get("CUDA_PATHFINDER_TEST_LOAD_NVIDIA_DYNAMIC_LIB_STRICTNESS", "default")
15-
return f"test-info-summary-{strictness}.log"
16-
17-
1813
@pytest.fixture(scope="session")
1914
def _info_summary_handler(request):
20-
log_path = request.config.rootpath / _info_summary_log_filename()
15+
strictness = os.environ.get("CUDA_PATHFINDER_TEST_LOAD_NVIDIA_DYNAMIC_LIB_STRICTNESS", "default")
16+
log_path = request.config.rootpath / f"test-info-summary-{strictness}.log"
2117
handler = logging.FileHandler(log_path, mode="w")
2218
handler.setFormatter(logging.Formatter("%(test_node)s: %(message)s"))
2319

0 commit comments

Comments
 (0)