diff options
author | gbrandl <devnull@localhost> | 2009-03-15 19:04:02 +0100 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2009-03-15 19:04:02 +0100 |
commit | 558af5109a10a5351a45e810bfe3b84285bb1b4a (patch) | |
tree | b504401ade7b34de0d5d6a4fb2a1fa9d5e797b17 /tests | |
parent | b2013b7124bb47a02e3021a92767741b6805107f (diff) | |
download | sphinx-558af5109a10a5351a45e810bfe3b84285bb1b4a.tar.gz |
Fix test_env after update() API change.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_env.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test_env.py b/tests/test_env.py index 0b944c50..a06656d6 100644 --- a/tests/test_env.py +++ b/tests/test_env.py @@ -37,8 +37,7 @@ def warning_emitted(file, text): # afford to not run update() in the setup but in its own test def test_first_update(): - it = env.update(app.config, app.srcdir, app.doctreedir, app) - msg = it.next() + msg, num, it = env.update(app.config, app.srcdir, app.doctreedir, app) assert msg.endswith('%d added, 0 changed, 0 removed' % len(env.found_docs)) docnames = set() for docname in it: # the generator does all the work @@ -80,8 +79,7 @@ def test_second_update(): # the contents.txt toctree; otherwise section numbers would shift (root / 'autodoc.txt').unlink() (root / 'new.txt').write_text('New file\n========\n') - it = env.update(app.config, app.srcdir, app.doctreedir, app) - msg = it.next() + msg, num, it = env.update(app.config, app.srcdir, app.doctreedir, app) assert '1 added, 3 changed, 1 removed' in msg docnames = set() for docname in it: |