File: run-tests.py

package info (click to toggle)
python-graphviz 0.14.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 712 kB
  • sloc: python: 1,821; makefile: 13
file content (19 lines) | stat: -rw-r--r-- 412 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env python

import platform
import sys

import pytest

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

if platform.system() == 'Windows':
    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:]))