FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonnet/tests/runtests.py at just · pythonnet/pythonnet · GitHub
pythonnet
pythonnet
Repository navigation
Code
Issues
147
(147)
Pull requests
11
(11)
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonnet
/
tests
/
runtests.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
38 lines (28 loc) · 929 Bytes
Breadcrumbs
pythonnet
/
tests
/
runtests.py
Copy path
File metadata and controls
38 lines (28 loc) · 929 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
()
Back
|
FazBrowse Home
|
New Git URL