Skip to content

Commit 2e89d38

Browse files
committed
Fix env passthrough for DEBUG_LOG
1 parent 8f58820 commit 2e89d38

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.evergreen/scripts/setup_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"GREEN_FRAMEWORK",
3131
"NO_EXT",
3232
"MONGODB_API_VERSION",
33-
"PYMONGO_DEBUG_LOG_PATH",
33+
"DEBUG_LOG",
3434
"PYTHON_BINARY",
3535
"PYTHON_VERSION",
3636
"REQUIRE_FIPS",

test/asynchronous/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def pytest_runtest_makereport(item):
1818
if _DEBUG_LOG_HANDLER is not None:
1919
outcome = yield
2020
rep = outcome.get_result()
21-
if rep.when == "call" and rep.failed:
21+
if rep.failed:
2222
_DEBUG_LOG_HANDLER.flush()
2323
else:
2424
_DEBUG_LOG_HANDLER.clear()

test/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def pytest_runtest_makereport(item):
1616
if _DEBUG_LOG_HANDLER is not None:
1717
outcome = yield
1818
rep = outcome.get_result()
19-
if rep.when == "call" and rep.failed:
19+
if rep.failed:
2020
_DEBUG_LOG_HANDLER.flush()
2121
else:
2222
_DEBUG_LOG_HANDLER.clear()

0 commit comments

Comments
 (0)