-
Notifications
You must be signed in to change notification settings - Fork 774
Expand file tree
/
Copy pathruntests.py
More file actions
38 lines (28 loc) · 929 Bytes
/
runtests.py
File metadata and controls
38 lines (28 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Run all of the unit tests for this package."""
from __future__ import print_function
import sys
import pytest
try:
import System
except ImportError:
print("Load clr import hook")
import clr
clr.AddReference("Python.Test")
clr.AddReference("System.Collections")
clr.AddReference("System.Data")
clr.AddReference("System.Management")
def main(verbosity=1):
# test_module passes on its own, but not here if
# other test modules that import System.Windows.Forms
# run first. They must not do module level import/AddReference()
# of the System.Windows.Forms namespace.
# FIXME: test_engine has tests that are being skipped.
# FIXME: test_subclass has tests that are being skipped.
pytest.main()
if __name__ == '__main__':
main()
if '--pause' in sys.argv:
print("Press enter to continue")
input()