From 2618e3640fa6ea5e0bef02003dc04a35d8e9c87c Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Fri, 3 Jun 2011 22:11:00 -0500 Subject: [PATCH] account for quotes in error messages --- testing/acceptance_test.py | 2 +- testing/test_terminal.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py index 1e12f1272..b964a0aea 100644 --- a/testing/acceptance_test.py +++ b/testing/acceptance_test.py @@ -89,7 +89,7 @@ class TestGeneralUsage: result = testdir.runpytest(p) result.stdout.fnmatch_lines([ #XXX on jython this fails: "> import import_fails", - "E ImportError: No module named does_not_work", + "E ImportError: No module named *does_not_work*", ]) assert result.ret == 1 diff --git a/testing/test_terminal.py b/testing/test_terminal.py index e7ff53d8e..9789cb19f 100644 --- a/testing/test_terminal.py +++ b/testing/test_terminal.py @@ -533,7 +533,7 @@ class TestGenericReporting: result = testdir.runpytest(*option.args) result.stdout.fnmatch_lines([ "> import xyz", - "E ImportError: No module named xyz", + "E ImportError: No module named *xyz*", "*1 error*", ])