From 285cf105f002deb0b59ab68f996798bb346f6fb9 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 28 Jul 2016 07:04:40 +0200 Subject: [PATCH] Add -bb for pytest python invocations This means Python will show an error if bytes/str are compared or str() is used on a bytes object. --- scripts/dev/run_pytest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/dev/run_pytest.py b/scripts/dev/run_pytest.py index eddd9ed42..9af53409a 100644 --- a/scripts/dev/run_pytest.py +++ b/scripts/dev/run_pytest.py @@ -37,7 +37,8 @@ if __name__ == '__main__': pass try: - subprocess.check_call([sys.executable, '-m', 'pytest'] + sys.argv[1:]) + subprocess.check_call([sys.executable, '-bb', '-m', 'pytest'] + + sys.argv[1:]) except subprocess.CalledProcessError as exc: is_segfault = exc.returncode in [128 + signal.SIGSEGV, -signal.SIGSEGV] if is_segfault and os.path.exists(pytest_status_file):