We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07453d6 commit 24e25bdCopy full SHA for 24e25bd
tests/test_execute.py
@@ -13,6 +13,11 @@
13
from sphinx.addnodes import download_reference
14
from sphinx.errors import ExtensionError
15
from sphinx.testing.util import SphinxTestApp, assert_node
16
+try:
17
+ from sphinx.testing.util import path
18
+except ImportError:
19
+ path = None
20
+
21
22
from jupyter_sphinx.ast import (
23
JupyterCellNode,
@@ -47,6 +52,8 @@ def doctree(
47
52
(src_dir / "index.rst").write_text(source, encoding="utf8")
48
53
49
54
warnings = StringIO()
55
+ if path is not None:
56
+ src_dir = path(src_dir.as_posix())
50
57
app = SphinxTestApp(
51
58
srcdir=src_dir,
59
status=StringIO(),
0 commit comments