Skip to content

Commit 5a34ba6

Browse files
committed
FIx.
1 parent b33d1cd commit 5a34ba6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Diff for: tests/conftest.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
import pytest
1313
from click.testing import CliRunner
14-
from nbmake.pytest_items import NotebookItem
1514
from packaging import version
1615

1716
from pytask import console
@@ -133,6 +132,11 @@ def run_in_subprocess(cmd: tuple[str, ...], cwd: Path | None = None) -> Result:
133132

134133
def pytest_collection_modifyitems(session, config, items) -> None: # noqa: ARG001
135134
"""Add markers to Jupyter notebook tests."""
135+
if sys.platform == "win32" and sys.version_info == (3, 13):
136+
return
137+
138+
from nbmake.pytest_items import NotebookItem
139+
136140
for item in items:
137141
if isinstance(item, NotebookItem):
138142
item.add_marker(pytest.mark.xfail(reason="The tests are flaky."))

Diff for: tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ commands =
2121
[testenv:test]
2222
extras = test
2323
deps =
24-
nbmake;not (platform_system == "Windows" and python_version == "3.13")
24+
nbmake;platform_system != "Windows" and python_version != "3.13"
2525
pygraphviz;platform_system == "Linux"
2626
commands =
2727
pytest --nbmake {posargs}

0 commit comments

Comments
 (0)