diff --git a/pytests/func/test_breakpoints.py b/pytests/func/test_breakpoints.py index 18036c97..18ea1ef0 100644 --- a/pytests/func/test_breakpoints.py +++ b/pytests/func/test_breakpoints.py @@ -212,7 +212,7 @@ def test_error_in_condition(pyfile, run_as, start_method, error_name): session.wait_for_exit() assert session.get_stdout_as_string() == b'' if error_name == 'NameError': - assert session.get_stderr_as_string() == b'' + assert session.get_stderr_as_string().find(b'NameError') == -1 else: assert session.get_stderr_as_string().find(b'ArithmeticError') > 0 diff --git a/pytests/func/testfiles/django1/app.py b/pytests/func/testfiles/django1/app.py index 69a1ab7d..32aed2ca 100644 --- a/pytests/func/testfiles/django1/app.py +++ b/pytests/func/testfiles/django1/app.py @@ -27,7 +27,7 @@ settings.configure( 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'APP_DIRS': True, 'DIRS': [ - 'templates/' + os.path.join(os.path.dirname(__file__), 'templates'), ] }, ]