account for quotes in error messages

This commit is contained in:
Benjamin Peterson 2011-06-03 22:11:00 -05:00
parent 43de6c270f
commit 2618e3640f
2 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ class TestGeneralUsage:
result = testdir.runpytest(p) result = testdir.runpytest(p)
result.stdout.fnmatch_lines([ result.stdout.fnmatch_lines([
#XXX on jython this fails: "> import import_fails", #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 assert result.ret == 1

View File

@ -533,7 +533,7 @@ class TestGenericReporting:
result = testdir.runpytest(*option.args) result = testdir.runpytest(*option.args)
result.stdout.fnmatch_lines([ result.stdout.fnmatch_lines([
"> import xyz", "> import xyz",
"E ImportError: No module named xyz", "E ImportError: No module named *xyz*",
"*1 error*", "*1 error*",
]) ])