Skip to content

Commit acbf49a

Browse files
committed
#3332 Fix message
1 parent 12a5f60 commit acbf49a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

_pytest/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def main(args=None, plugins=None):
5454
tw = py.io.TerminalWriter(sys.stderr)
5555
formatted_tb = safe_str(e)
5656
tw.line(
57-
"ImportError while importing test module '{path}'.\n"
57+
"ImportError while importing conftest module '{path}'.\n"
5858
"Hint: make sure your test modules/packages have valid Python names.\n"
5959
"Traceback:\n"
6060
"{traceback}".format(path=e.path, traceback=formatted_tb),

testing/acceptance_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def test_issue486_better_reporting_on_conftest_load_failure(self, testdir):
145145
*warning*conftest.py*
146146
""")
147147
result = testdir.runpytest()
148-
result.stderr.fnmatch_lines(["*ImportError while importing test module*conftest.py*",
148+
result.stderr.fnmatch_lines(["*ImportError while importing conftest module*conftest.py*",
149149
"E *Error: No module named*qwerty*"]
150150
)
151151

0 commit comments

Comments
 (0)