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 | 35258f2c46068cc7e5019118d157d55a9f2d2524 (patch) | |
tree | bb6799ff90f76699104a130c67ec95139f7c1a00 /tests | |
parent | a1f633ee036386e9d3f0317148ea64682bd23bc4 (diff) | |
parent | 1cea10643d7545dde25c1c7d3fbe55b70c4edd3d (diff) | |
download | sphinx-git-35258f2c46068cc7e5019118d157d55a9f2d2524.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 124ed08cd..a8d6bac2d 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') |