From c3e233e01647f39866e9c91ec324fdb6e9e893c6 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 12 Nov 2010 08:34:47 +0100 Subject: Adapt test to new warning API. --- tests/test_env.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/test_env.py') diff --git a/tests/test_env.py b/tests/test_env.py index 4ecbaac49..e91d8e334 100644 --- a/tests/test_env.py +++ b/tests/test_env.py @@ -28,7 +28,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 @@ -46,8 +46,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') -- cgit v1.2.1