diff options
Diffstat (limited to '')
-rw-r--r-- | tests/test_directives/test_directive_only.py (renamed from tests/test_directive_only.py) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_directive_only.py b/tests/test_directives/test_directive_only.py index 2e9ea63..bf03c7b 100644 --- a/tests/test_directive_only.py +++ b/tests/test_directives/test_directive_only.py @@ -34,7 +34,7 @@ def test_sectioning(app, status, warning): 'Unnumbered section: %r' % subsect[0] testsects(prefix + str(i + 1) + '.', subsect, indent + 4) - app.builder.build(['only']) + app.build(filenames=[app.srcdir / 'only.rst']) doctree = app.env.get_doctree('only') app.env.apply_post_transforms(doctree, 'only') @@ -43,4 +43,4 @@ def test_sectioning(app, status, warning): for i, s in enumerate(parts): testsects(str(i + 1) + '.', s, 4) assert len(parts) == 4, 'Expected 4 document level headings, got:\n%s' % \ - '\n'.join([p[0] for p in parts]) + '\n'.join(p[0] for p in parts) |