|
8 | 8 | import numpy as np
|
9 | 9 | import pytest
|
10 | 10 |
|
11 |
| -import pandas.util._test_decorators as td |
12 |
| - |
13 | 11 | import pandas as pd
|
14 | 12 | from pandas import Series
|
15 | 13 | import pandas._testing as tm
|
@@ -255,26 +253,3 @@ def test_bz2_missing_import():
|
255 | 253 | code = textwrap.dedent(code)
|
256 | 254 | call = [sys.executable, "-c", code]
|
257 | 255 | subprocess.check_output(call)
|
258 |
| - |
259 |
| - |
260 |
| -@td.skip_if_installed("pyarrow") |
261 |
| -@pytest.mark.parametrize("module", ["pandas", "pandas.arrays"]) |
262 |
| -def test_pyarrow_missing_warn(module): |
263 |
| - # GH56896 |
264 |
| - response = subprocess.run( |
265 |
| - [sys.executable, "-c", f"import {module}"], |
266 |
| - capture_output=True, |
267 |
| - check=True, |
268 |
| - ) |
269 |
| - msg = """ |
270 |
| -Pyarrow will become a required dependency of pandas in the next major release of pandas (pandas 3.0), |
271 |
| -(to allow more performant data types, such as the Arrow string type, and better interoperability with other libraries) |
272 |
| -but was not found to be installed on your system. |
273 |
| -If this would cause problems for you, |
274 |
| -please provide us feedback at https://github.com/pandas-dev/pandas/issues/54466 |
275 |
| -""" # noqa: E501 |
276 |
| - stderr_msg = response.stderr.decode("utf-8") |
277 |
| - # Split by \n to avoid \r\n vs \n differences on Windows/Unix |
278 |
| - # https://stackoverflow.com/questions/11989501/replacing-r-n-with-n |
279 |
| - stderr_msg = "\n".join(stderr_msg.splitlines()) |
280 |
| - assert msg in stderr_msg |
0 commit comments