Skip to content

Commit f3ae159

Browse files
authored
Change error message from Error to ImportError
1 parent 77507c6 commit f3ae159

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_django_settings_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def test_ds_non_existent(pytester: pytest.Pytester, monkeypatch: pytest.MonkeyPa
129129
monkeypatch.setenv("DJANGO_SETTINGS_MODULE", "DOES_NOT_EXIST")
130130
pytester.makepyfile("def test_ds(): pass")
131131
result = pytester.runpytest_subprocess()
132-
result.stderr.fnmatch_lines(["*Error:*DOES_NOT_EXIST*"])
132+
result.stderr.fnmatch_lines(["*ImportError:*DOES_NOT_EXIST*"])
133133
assert result.ret != 0
134134

135135

0 commit comments

Comments
 (0)