-
-
Notifications
You must be signed in to change notification settings - Fork 19.4k
Closed
Labels
BugTestingpandas testing functions or related to the test suitepandas testing functions or related to the test suite
Milestone
Description
Pandas version checks
-
I have checked that this issue has not already been reported.
-
I have confirmed this bug exists on the latest version of pandas.
-
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
pytest pandas/tests --no-strict-data-files -m "not single_cpu and not slow and not network and not db" # from sdistIssue Description
The test suite in 3.0.0rc1 fails with errors such as:
______________________________________________ test_read_csv_chained_url_no_error[infer] ______________________________________________
[gw9] linux -- Python 3.11.14 /tmp/portage/dev-python/pandas-3.0.0_rc1/work/pandas-3.0.0rc1-python3_11/install/usr/bin/python3.11
compression = 'infer'
@td.skip_if_no("fsspec")
@pytest.mark.parametrize("compression", [None, "infer"])
def test_read_csv_chained_url_no_error(compression):
# GH 60100
tar_file_path = "pandas/tests/io/data/tar/test-csv.tar"
chained_file_url = f"tar://test.csv::file://{tar_file_path}"
> result = pd.read_csv(chained_file_url, compression=compression, sep=";")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
chained_file_url = 'tar://test.csv::file://pandas/tests/io/data/tar/test-csv.tar'
compression = 'infer'
tar_file_path = 'pandas/tests/io/data/tar/test-csv.tar'
pandas/tests/io/test_common.py:649:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[…]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <fsspec.implementations.local.LocalFileOpener object at 0x7efb680194b0>
def _open(self):
if self.f is None or self.f.closed:
if self.autocommit or "w" not in self.mode:
> self.f = open(self.path, mode=self.mode)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/portage/dev-python/pandas-3.0.0_rc1/work/pandas-3.0.0rc1-python3_11/install/usr/lib/python3.11/site-packages/pandas/tests/io/data/tar/test-csv.tar'
self = <fsspec.implementations.local.LocalFileOpener object at 0x7efb680194b0>
/usr/lib/python3.11/site-packages/fsspec/implementations/local.py:392: FileNotFoundError…when run from the source distribution, even though --no-strict-data-files is passed.
Expected Behavior
Tests passing.
Installed Versions
Details
INSTALLED VERSIONS
------------------
commit : 72427599b673c58e91c4e96a610fe753e3edc550
python : 3.11.14
python-bits : 64
OS : Linux
OS-release : 6.18.2-gentoo-dist
Version : #1 SMP PREEMPT_DYNAMIC Thu Dec 18 17:15:32 -00 2025
machine : x86_64
processor : AMD Ryzen 5 3600 6-Core Processor
byteorder : little
LC_ALL : None
LANG : C.UTF8
LOCALE : en_US.UTF-8
pandas : 3.0.0rc1
numpy : 2.3.5
dateutil : 2.9.0.post0
pip : 25.3
Cython : 3.2.3
sphinx : None
IPython : 9.8.0
adbc-driver-postgresql: None
adbc-driver-sqlite : None
bs4 : 4.14.3
bottleneck : 1.6.0
fastparquet : None
fsspec : 2025.12.0
html5lib : 1.2-dev
hypothesis : 6.148.7
gcsfs : None
jinja2 : 3.1.6
lxml.etree : 6.0.2
matplotlib : 3.10.8
numba : None
numexpr : 2.14.1
odfpy : None
openpyxl : 3.1.5
psycopg2 : 2.9.11
pymysql : 1.4.6
pyarrow : 22.0.0
pyiceberg : None
pyreadstat : None
pytest : 9.0.2
python-calamine : None
pytz : 2025.2
pyxlsb : None
s3fs : None
scipy : 1.17.0rc1
sqlalchemy : 2.0.45
tables : 3.10.2
tabulate : 0.9.0
xarray : 2025.12.0
xlrd : 2.0.2
xlsxwriter : 3.2.9
zstandard : 0.25.0
qtpy : 2.4.3
pyqt5 : None
Metadata
Metadata
Assignees
Labels
BugTestingpandas testing functions or related to the test suitepandas testing functions or related to the test suite