File tree 4 files changed +25
-267
lines changed
4 files changed +25
-267
lines changed Original file line number Diff line number Diff line change 56
56
57
57
from pandas .io .api import *
58
58
59
- # define the testing framework
60
- import pandas .util .testing
61
- from pandas .util .nosetester import NoseTester
62
- test = NoseTester ().test
63
- del NoseTester
59
+ from pandas .api .test import test
64
60
65
61
# use the closest tagged version if possible
66
62
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