File tree 3 files changed +27
-5
lines changed
3 files changed +27
-5
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,6 @@ matrix:
53
53
- FULL_DEPS=true
54
54
- CLIPBOARD=xsel
55
55
- JOB_NAME : " 34_nslow"
56
- - PANDAS_TESTING_MODE="deprecate"
57
56
- python : 2.7
58
57
env :
59
58
- EXPERIMENTAL=true
@@ -70,7 +69,6 @@ matrix:
70
69
- FULL_DEPS=true
71
70
- CLIPBOARD=xsel
72
71
- JOB_NAME : " 34_nslow"
73
- - PANDAS_TESTING_MODE="deprecate"
74
72
- python : 2.7
75
73
env :
76
74
- EXPERIMENTAL=true
Original file line number Diff line number Diff line change @@ -123,6 +123,20 @@ def compat_assert_produces_warning(w,f):
123
123
124
124
class TestHDFStore (tm .TestCase ):
125
125
126
+ @classmethod
127
+ def setUpClass (cls ):
128
+ super (TestHDFStore , cls ).setUpClass ()
129
+
130
+ # Pytables 3.0.0 deprecates lots of things
131
+ tm .reset_testing_mode ()
132
+
133
+ @classmethod
134
+ def tearDownClass (cls ):
135
+ super (TestHDFStore , cls ).tearDownClass ()
136
+
137
+ # Pytables 3.0.0 deprecates lots of things
138
+ tm .set_testing_mode ()
139
+
126
140
def setUp (self ):
127
141
warnings .filterwarnings (action = 'ignore' , category = FutureWarning )
128
142
Original file line number Diff line number Diff line change 55
55
_RAISE_NETWORK_ERROR_DEFAULT = False
56
56
57
57
# set testing_mode
58
- testing_mode = os .environ .get ('PANDAS_TESTING_MODE' ,'None' )
59
- if 'deprecate' in testing_mode :
60
- warnings .simplefilter ('always' , DeprecationWarning )
58
+ def set_testing_mode ():
59
+ # set the testing mode filters
60
+ testing_mode = os .environ .get ('PANDAS_TESTING_MODE' ,'None' )
61
+ if 'deprecate' in testing_mode :
62
+ warnings .simplefilter ('always' , DeprecationWarning )
63
+
64
+ def reset_testing_mode ():
65
+ # reset the testing mode filters
66
+ testing_mode = os .environ .get ('PANDAS_TESTING_MODE' ,'None' )
67
+ if 'deprecate' in testing_mode :
68
+ warnings .simplefilter ('ignore' , DeprecationWarning )
69
+
70
+ set_testing_mode ()
61
71
62
72
class TestCase (unittest .TestCase ):
63
73
You can’t perform that action at this time.
0 commit comments