@@ -130,21 +130,13 @@ def test_xarray_cftimeindex_nearest():
130
130
assert result == expected
131
131
132
132
133
- def test_oo_optimizable (monkeypatch ):
133
+ def test_oo_optimizable ():
134
134
# GH 21071
135
- # Can't import pandas from the test directory since its not
136
- # built inplace with meson
137
- if pd ._built_with_meson :
138
- monkeypatch .chdir (".." )
139
135
subprocess .check_call ([sys .executable , "-OO" , "-c" , "import pandas" ])
140
136
141
137
142
- def test_oo_optimized_datetime_index_unpickle (monkeypatch ):
138
+ def test_oo_optimized_datetime_index_unpickle ():
143
139
# GH 42866
144
- # Can't import pandas from the test directory since its not
145
- # built inplace with meson
146
- if pd ._built_with_meson :
147
- monkeypatch .chdir (".." )
148
140
subprocess .check_call (
149
141
[
150
142
sys .executable ,
@@ -245,11 +237,7 @@ def test_yaml_dump(df):
245
237
tm .assert_frame_equal (df , loaded2 )
246
238
247
239
248
- def test_missing_required_dependency (monkeypatch ):
249
- # TODO: This test is basically disabled until we have
250
- # editable installs in meson-python. Re-enable this when
251
- # that happens.
252
-
240
+ def test_missing_required_dependency ():
253
241
# GH 23868
254
242
# To ensure proper isolation, we pass these flags
255
243
# -S : disable site-packages
@@ -262,11 +250,6 @@ def test_missing_required_dependency(monkeypatch):
262
250
# We skip this test if pandas is installed as a site package. We first
263
251
# import the package normally and check the path to the module before
264
252
# executing the test which imports pandas with site packages disabled.
265
-
266
- # Can't import pandas from the test directory since its not
267
- # built inplace with meson
268
- if pd ._built_with_meson :
269
- monkeypatch .chdir (".." )
270
253
call = [pyexe , "-c" , "import pandas;print(pandas.__file__)" ]
271
254
output = subprocess .check_output (call ).decode ()
272
255
if "site-packages" in output :
0 commit comments