Visitar URL original
fix: exclude Allure report writer from fake filesystem · firebolt-db/firebolt-python-sdk@bf61f92 · GitHub
Skip to content

Commit bf61f92

Browse files
committed
fix: exclude Allure report writer from fake filesystem
Allure 2.16.1 introduced atomic report writes: io.open writes the temporary file on the real filesystem, but pyfakefs intercepts os.replace and searches the fake filesystem. Exclude the actual Allure modules so both operations use the real filesystem. Upstream: allure-framework/allure-python#924 Validation: Python 3.9.25, Allure 2.16.2, pyfakefs 5.6.0; full unit suite with coverage and Allure enabled: 778 passed, 1 skipped.
1 parent 5d78977 commit bf61f92

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎tests/unit/conftest.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ def global_fake_fs(request) -> None:
3737
if "nofakefs" in request.keywords:
3838
yield
3939
else:
40-
with Patcher(additional_skip_names=["logger", "allure-pytest"]):
40+
with Patcher(
41+
additional_skip_names=["logger", "allure_commons.logger", "allure_pytest"]
42+
):
4143
yield
4244

4345

0 commit comments

Comments
 (0)