Revision 678b118ecd5695e6e2de94f5c03f066342bad421 authored by Sebastian Bank on 08 June 2017, 20:22:44 UTC, committed by Sebastian Bank on 08 June 2017, 20:22:44 UTC
1 parent 39071c7
Raw File
run-tests.py
#!/usr/bin/env python
# run-tests.py

import sys

import pytest

ARGS = [
    #'--exitfirst',
    #'--pdb',
]

if 'idlelib' in sys.modules or 'thonny' in sys.modules:
    ARGS.extend(['--capture=sys', '--color=no'])
elif sys.version_info[0] == 2 and 'win_unicode_console' in sys.modules:
    ARGS.append('--capture=sys')

pytest.main(ARGS + sys.argv[1:])
back to top