We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56f06f1 commit 0a66ec1Copy full SHA for 0a66ec1
tests/test_execute.py
@@ -37,10 +37,13 @@ def doctree(
37
):
38
src_dir = Path(tempfile.mkdtemp())
39
source_trees.append(src_dir.as_posix())
40
- (src_dir / "conf.py").write_text("extensions = ['%s']" % entrypoint, encoding = "utf8")
+
41
+ conf_contents = "extensions = ['%s']" % entrypoint
42
if config is not None:
- f.write("\n" + config)
43
+ conf_contents += "\n" + config
44
+ (src_dir / "conf.py").write_text(conf_contents, encoding = "utf8")
45
(src_dir / "contents.rst").write_text(source, encoding = "utf8")
46
47
warnings = StringIO()
48
app = SphinxTestApp(srcdir=path(src_dir.as_posix()), status=StringIO(), warning=warnings)
49
apps.append(app)
0 commit comments