From 4e9aa671a78fd4492099a42f056c0843450dae08 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Mon, 5 May 2014 11:56:41 +0200 Subject: [PATCH] Python 3 compatibility --- conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conftest.py b/conftest.py index 8795f4a..bd99fe6 100644 --- a/conftest.py +++ b/conftest.py @@ -16,7 +16,7 @@ class IntegrationTestFile(object): def run(self): output = subprocess.check_output([VSPEC_RUNNER, '.', VSPEC_FOLDER, self.path]) for line in output.splitlines(): - if line.startswith('not ok') or line.startswith('Error'): + if line.startswith(b'not ok') or line.startswith(b'Error'): print(output) assert False @@ -42,7 +42,7 @@ def pytest_configure(config): with open(dest, 'w') as f: f.write(data) z.close() - os.chmod(VSPEC_RUNNER, 0777) + os.chmod(VSPEC_RUNNER, 0o777) def pytest_generate_tests(metafunc):