diff --git a/pyscript.core/tests/integration/test_00_support.py b/pyscript.core/tests/integration/test_00_support.py index f3500a65..f09a88a4 100644 --- a/pyscript.core/tests/integration/test_00_support.py +++ b/pyscript.core/tests/integration/test_00_support.py @@ -471,6 +471,8 @@ class TestSupport(PyScriptTest): Test that we capture a 404 in loading a page that does not exist. """ self.goto("this_url_does_not_exist.html") - assert [ - "Failed to load resource: the server responded with a status of 404 (Not Found)" - ] == self.console.all.lines + if self.dev_server: + error = "Failed to load resource: the server responded with a status of 404 (File not found)" + else: + error = "Failed to load resource: the server responded with a status of 404 (Not Found)" + assert [error] == self.console.all.lines