FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
matplotlib/tests.py at boxplot-stat-transforms · phobson/matplotlib · GitHub
phobson
/
matplotlib
Public
forked from
matplotlib/matplotlib
Notifications
You must be signed in to change notification settings
Fork
1
Star
1
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
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
·
35 lines (28 loc) · 1.07 KB
Breadcrumbs
matplotlib
/
tests.py
Copy path
File metadata and controls
executable file
·
35 lines (28 loc) · 1.07 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
35
#!/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 nosetests.
#
# See https://nose.readthedocs.org/ for a detailed description of
# these options.
import
sys
if
__name__
==
'__main__'
:
from
matplotlib
import
default_test_modules
,
test
extra_args
=
[]
if
'--no-pep8'
in
sys
.
argv
:
default_test_modules
.
remove
(
'matplotlib.tests.test_coding_standards'
)
sys
.
argv
.
remove
(
'--no-pep8'
)
elif
'--pep8'
in
sys
.
argv
:
default_test_modules
[:]
=
[
'matplotlib.tests.test_coding_standards'
]
sys
.
argv
.
remove
(
'--pep8'
)
if
'--no-network'
in
sys
.
argv
:
from
matplotlib
.
testing
import
disable_internet
disable_internet
.
turn_off_internet
()
extra_args
.
extend
([
'-a'
,
'!network'
])
sys
.
argv
.
remove
(
'--no-network'
)
print
(
'Python byte-compilation optimization level: %d'
%
sys
.
flags
.
optimize
)
success
=
test
(
argv
=
sys
.
argv
+
extra_args
,
switch_backend_warn
=
False
)
sys
.
exit
(
not
success
)
Back
|
FazBrowse Home
|
New Git URL