minor test fixes (#1086)

This commit is contained in:
Karthik Nadig 2019-01-03 15:28:11 -08:00 committed by GitHub
parent cb2d217f79
commit b83be58ab4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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'),
]
},
]