From b83be58ab4d95b3aceedd2989379cb405564d87d Mon Sep 17 00:00:00 2001 From: Karthik Nadig Date: Thu, 3 Jan 2019 15:28:11 -0800 Subject: [PATCH] minor test fixes (#1086) --- pytests/func/test_breakpoints.py | 2 +- pytests/func/testfiles/django1/app.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'), ] }, ]