diff options
author | Georg Brandl <georg@python.org> | 2010-11-17 22:59:08 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-11-17 22:59:08 +0100 |
commit | 368840db262ff37370d7d371772bb27636b88926 (patch) | |
tree | bb6799ff90f76699104a130c67ec95139f7c1a00 /tests | |
parent | 1f392987c97fc7fecfe934d0fe2d40334fed5435 (diff) | |
parent | eba5ae5c679422bea0f38ebcf467929400820a37 (diff) | |
download | sphinx-368840db262ff37370d7d371772bb27636b88926.tar.gz |
merge with 1.0
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_env.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_env.py b/tests/test_env.py index 124ed08c..a8d6bac2 100644 --- a/tests/test_env.py +++ b/tests/test_env.py @@ -29,7 +29,7 @@ def teardown_module(): def warning_emitted(file, text): for warning in warnings: - if len(warning) == 2 and file+':' in warning[1] and text in warning[0]: + if len(warning) == 2 and file in warning[1] and text in warning[0]: return True return False @@ -47,8 +47,8 @@ def test_first_update(): assert 'subdir/excluded' not in env.found_docs def test_images(): - assert warning_emitted('images.txt', 'image file not readable: foo.png') - assert warning_emitted('images.txt', 'nonlocal image URI found: ' + assert warning_emitted('images', 'image file not readable: foo.png') + assert warning_emitted('images', 'nonlocal image URI found: ' 'http://www.python.org/logo.png') tree = env.get_doctree('images') |