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.
This commit is contained in:
Florian Bruhin 2016-07-28 07:04:40 +02:00
parent dfb7ba29fd
commit 285cf105f0

View File

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