FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
matplotlib/tests.py at master · dridk/matplotlib · GitHub
dridk
matplotlib
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
matplotlib
/
tests.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
34 lines (28 loc) · 1.04 KB
Breadcrumbs
matplotlib
/
tests.py
Copy path
File metadata and controls
executable file
·
34 lines (28 loc) · 1.04 KB
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
#!/usr/bin/env python
#
# This allows running the matplotlib tests from the command line: e.g.
#
# $ python tests.py -v -d
#
# The arguments are identical to the arguments accepted by pytest.
#
# See http://doc.pytest.org/ for a detailed description of these options.
import
sys
import
argparse
if
__name__
==
'__main__'
:
try
:
from
matplotlib
import
test
except
ImportError
:
print
(
'matplotlib.test could not be imported.
\n
\n
'
'Try a virtual env and `pip install -e .`'
)
sys
.
exit
(
-
1
)
parser
=
argparse
.
ArgumentParser
(
add_help
=
False
)
parser
.
add_argument
(
'--recursionlimit'
,
type
=
int
,
default
=
None
,
help
=
'Specify recursionlimit for test run'
)
args
,
extra_args
=
parser
.
parse_known_args
()
print
(
'Python byte-compilation optimization level:'
,
sys
.
flags
.
optimize
)
if
args
.
recursionlimit
is
not
None
:
# Will trigger deprecation.
retcode
=
test
(
argv
=
extra_args
,
recursionlimit
=
args
.
recursionlimit
)
else
:
retcode
=
test
(
argv
=
extra_args
)
sys
.
exit
(
retcode
)
Back
|
FazBrowse Home
|
New Git URL