File tree 3 files changed +0
-37
lines changed
3 files changed +0
-37
lines changed Original file line number Diff line number Diff line change 77
77
- name : " Numpy Dev"
78
78
env_file : actions-310-numpydev.yaml
79
79
pattern : " not slow and not network and not single_cpu"
80
- pandas_testing_mode : " deprecate"
81
80
test_args : " -W error::DeprecationWarning:numpy -W error::FutureWarning:numpy"
82
81
exclude :
83
82
- env_file : actions-39.yaml
96
95
EXTRA_APT : ${{ matrix.extra_apt || '' }}
97
96
LANG : ${{ matrix.lang || '' }}
98
97
LC_ALL : ${{ matrix.lc_all || '' }}
99
- PANDAS_TESTING_MODE : ${{ matrix.pandas_testing_mode || '' }}
100
98
PANDAS_DATA_MANAGER : ${{ matrix.pandas_data_manager || 'block' }}
101
99
PANDAS_COPY_ON_WRITE : ${{ matrix.pandas_copy_on_write || '0' }}
102
100
TEST_ARGS : ${{ matrix.test_args || '' }}
Original file line number Diff line number Diff line change 15
15
Counter ,
16
16
Iterable ,
17
17
)
18
- import warnings
19
18
20
19
import numpy as np
21
20
236
235
237
236
EMPTY_STRING_PATTERN = re .compile ("^$" )
238
237
239
- # set testing_mode
240
- _testing_mode_warnings = (DeprecationWarning , ResourceWarning )
241
-
242
-
243
- def set_testing_mode () -> None :
244
- # set the testing mode filters
245
- testing_mode = os .environ .get ("PANDAS_TESTING_MODE" , "None" )
246
- if "deprecate" in testing_mode :
247
- for category in _testing_mode_warnings :
248
- warnings .simplefilter ("always" , category )
249
-
250
-
251
- def reset_testing_mode () -> None :
252
- # reset the testing mode filters
253
- testing_mode = os .environ .get ("PANDAS_TESTING_MODE" , "None" )
254
- if "deprecate" in testing_mode :
255
- for category in _testing_mode_warnings :
256
- warnings .simplefilter ("ignore" , category )
257
-
258
-
259
- set_testing_mode ()
260
-
261
238
262
239
def reset_display_options () -> None :
263
240
"""
@@ -1142,14 +1119,12 @@ def shares_memory(left, right) -> bool:
1142
1119
"randbool" ,
1143
1120
"rands" ,
1144
1121
"reset_display_options" ,
1145
- "reset_testing_mode" ,
1146
1122
"RNGContext" ,
1147
1123
"round_trip_localpath" ,
1148
1124
"round_trip_pathlib" ,
1149
1125
"round_trip_pickle" ,
1150
1126
"setitem" ,
1151
1127
"set_locale" ,
1152
- "set_testing_mode" ,
1153
1128
"set_timezone" ,
1154
1129
"shares_memory" ,
1155
1130
"SIGNED_INT_EA_DTYPES" ,
Original file line number Diff line number Diff line change 2
2
3
3
import pytest
4
4
5
- import pandas ._testing as tm
6
-
7
5
8
6
@pytest .fixture
9
7
def setup_path ():
10
8
"""Fixture for setup path"""
11
9
return f"tmp.__{ uuid .uuid4 ()} __.h5"
12
-
13
-
14
- @pytest .fixture (scope = "module" , autouse = True )
15
- def setup_mode ():
16
- """Reset testing mode fixture"""
17
- tm .reset_testing_mode ()
18
- yield
19
- tm .set_testing_mode ()
You can’t perform that action at this time.
0 commit comments