@@ -133,13 +133,21 @@ def test_xarray_cftimeindex_nearest():
133
133
assert result == expected
134
134
135
135
136
- def test_oo_optimizable ():
136
+ def test_oo_optimizable (monkeypatch ):
137
137
# GH 21071
138
+ # Can't import pandas from the test directory since its not
139
+ # built inplace with meson
140
+ if pd ._built_with_meson :
141
+ monkeypatch .chdir (".." )
138
142
subprocess .check_call ([sys .executable , "-OO" , "-c" , "import pandas" ])
139
143
140
144
141
- def test_oo_optimized_datetime_index_unpickle ():
145
+ def test_oo_optimized_datetime_index_unpickle (monkeypatch ):
142
146
# GH 42866
147
+ # Can't import pandas from the test directory since its not
148
+ # built inplace with meson
149
+ if pd ._built_with_meson :
150
+ monkeypatch .chdir (".." )
143
151
subprocess .check_call (
144
152
[
145
153
sys .executable ,
@@ -270,7 +278,11 @@ def test_yaml_dump(df):
270
278
tm .assert_frame_equal (df , loaded2 )
271
279
272
280
273
- def test_missing_required_dependency ():
281
+ def test_missing_required_dependency (monkeypatch ):
282
+ # TODO: This test is basically disabled until we have
283
+ # editable installs in meson-python. Re-enable this when
284
+ # that happens.
285
+
274
286
# GH 23868
275
287
# To ensure proper isolation, we pass these flags
276
288
# -S : disable site-packages
@@ -283,6 +295,11 @@ def test_missing_required_dependency():
283
295
# We skip this test if pandas is installed as a site package. We first
284
296
# import the package normally and check the path to the module before
285
297
# executing the test which imports pandas with site packages disabled.
298
+
299
+ # Can't import pandas from the test directory since its not
300
+ # built inplace with meson
301
+ if pd ._built_with_meson :
302
+ monkeypatch .chdir (".." )
286
303
call = [pyexe , "-c" , "import pandas;print(pandas.__file__)" ]
287
304
output = subprocess .check_output (call ).decode ()
288
305
if "site-packages" in output :
0 commit comments