mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix broken tests by 7bb685bbe9
This commit is contained in:
parent
7bb685bbe9
commit
26c43643d3
@ -1,5 +1,5 @@
|
||||
extensions = ['sphinx.ext.doctest']
|
||||
|
||||
project = 'test project for doctest'
|
||||
master_doc = 'doctest.txt'
|
||||
master_doc = 'doctest'
|
||||
source_suffix = '.txt'
|
||||
|
@ -76,12 +76,14 @@ def test_build_all():
|
||||
|
||||
@with_app(buildername='text')
|
||||
def test_master_doc_not_found(app, status, warning):
|
||||
(app.srcdir / 'contents.txt').unlink()
|
||||
(app.srcdir / 'contents.txt').move(app.srcdir / 'contents.txt.bak')
|
||||
try:
|
||||
app.builder.build_all()
|
||||
assert False # SphinxError not raised
|
||||
except Exception as exc:
|
||||
assert isinstance(exc, SphinxError)
|
||||
finally:
|
||||
(app.srcdir / 'contents.txt.bak').move(app.srcdir / 'contents.txt')
|
||||
|
||||
|
||||
@with_app(buildername='text', testroot='circular')
|
||||
|
Loading…
Reference in New Issue
Block a user