#!/usr/bin/env python
# run-tests.py

import sys

import pytest

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

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

sys.exit(pytest.main(ARGS + sys.argv[1:]))

@@ -185,116 +185,8 @@
 o'%5D)
-%0Aelif sys.version_info.major == 2 and 'win_unicode_console' in sys.modules:%0A    ARGS.append('--capture=sys')
 %0A%0Asy

drop PY2 branch from test-running script