File tree Expand file tree Collapse file tree 4 files changed +25
-268
lines changed Expand file tree Collapse file tree 4 files changed +25
-268
lines changed Original file line number Diff line number Diff line change 53
53
from pandas .tools .util import to_numeric
54
54
from pandas .core .reshape import melt
55
55
from pandas .util .print_versions import show_versions
56
-
57
- # define the testing framework
58
- import pandas .util .testing
59
- from pandas .util .nosetester import NoseTester
60
- test = NoseTester ().test
61
- del NoseTester
56
+ from pandas .api .test import test
62
57
63
58
# use the closest tagged version if possible
64
59
from ._version import get_versions
Original file line number Diff line number Diff line change
1
+ """
2
+ Entrypoint for testing from the top-level namespace
3
+ """
4
+ import os
5
+
6
+ PKG = os .path .dirname (os .path .dirname (__file__ ))
7
+
8
+
9
+ try :
10
+ import pytest
11
+ except ImportError :
12
+ def test ():
13
+ raise ImportError ("Need pytest>=3.0 to run tests" )
14
+ else :
15
+ def test (extra_args = None ):
16
+ if extra_args :
17
+ cmd = ['-q' ] + extra_args + [PKG ]
18
+ else :
19
+ cmd = ['-q' , PKG ]
20
+ pytest .main (cmd )
21
+
22
+
23
+ __all__ = ['test' ]
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ def test_api(self):
133
133
134
134
class TestApi (Base , tm .TestCase ):
135
135
136
- allowed = ['tests' , 'types' ]
136
+ allowed = ['tests' , 'types' , 'test' ]
137
137
138
138
def test_api (self ):
139
139
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments