FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
matplotlib/tests.py at master · olemis/matplotlib · GitHub
olemis
matplotlib
Repository navigation
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
·
42 lines (34 loc) · 1.07 KB
Breadcrumbs
matplotlib
/
tests.py
Copy path
File metadata and controls
executable file
·
42 lines (34 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
36
37
38
39
40
41
42
#!/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
os
import
time
import
matplotlib
matplotlib
.
use
(
'agg'
)
import
nose
from
matplotlib
.
testing
.
noseclasses
import
KnownFailure
from
matplotlib
import
default_test_modules
from
matplotlib
import
font_manager
# Make sure the font caches are created before starting any possibly
# parallel tests
if
font_manager
.
_fmcache
is
not
None
:
while
not
os
.
path
.
exists
(
font_manager
.
_fmcache
):
time
.
sleep
(
0.5
)
plugins
=
[
KnownFailure
]
# Nose doesn't automatically instantiate all of the plugins in the
# child processes, so we have to provide the multiprocess plugin with
# a list.
from
nose
.
plugins
import
multiprocess
multiprocess
.
_instantiate_plugins
=
plugins
def
run
():
nose
.
main
(
addplugins
=
[
x
()
for
x
in
plugins
],
defaultTest
=
default_test_modules
)
if
__name__
==
'__main__'
:
run
()
Back
|
FazBrowse Home
|
New Git URL