File tree Expand file tree Collapse file tree 3 files changed +18
-10
lines changed Expand file tree Collapse file tree 3 files changed +18
-10
lines changed Original file line number Diff line number Diff line change 2
2
import matplotlib
3
3
matplotlib .use ('agg' )
4
4
5
- import pytest
6
- status = pytest . main ( sys .argv [1 :])
5
+ import probscale
6
+ status = probscale . test ( * sys .argv [1 :])
7
7
sys .exit (status )
Original file line number Diff line number Diff line change 1
1
package :
2
2
name : mpl-probscale
3
- version : 0.1.2dev
3
+ version : 0.2.0dev
4
4
5
5
source :
6
6
path : ../
7
7
8
8
build :
9
9
script : python setup.py install
10
- number : 2
10
+ number : 1
11
11
12
12
requirements :
13
13
build :
14
14
- python
15
+ - setuptools
15
16
- numpy
16
17
- matplotlib
17
- - nose
18
18
19
19
run :
20
20
- python
21
21
- numpy
22
22
- matplotlib
23
- - nose
23
+ - pytest
24
24
25
25
test :
26
26
imports :
27
27
- probscale
28
28
29
29
commands :
30
- - python -c "import matplotlib; matplotlib .use('agg'); import probscale; probscale .test()"
30
+ - python -c "import matplotlib as mpl; mpl .use('agg'); import probscale as ps; ps .test()"
31
31
32
32
requires :
33
- - nose
33
+ - pytest
34
34
- scipy
35
35
36
36
about :
Original file line number Diff line number Diff line change 1
- from numpy .testing import Tester
2
- test = Tester ().test
1
+ from pkg_resources import resource_filename
2
+
3
+ import pytest
4
+
5
+ import probscale
6
+
7
+ def test (* args ):
8
+ options = [resource_filename ('probscale' , 'tests' )]
9
+ options .extend (list (args ))
10
+ return pytest .main (options )
You can’t perform that action at this time.
0 commit comments