Skip to content

Closes #5449: test_dataframe_docstrings unit test failures - #5450

Merged
ajpotts merged 3 commits into
Bears-R-Us:mainfrom
ajpotts:5449_test_dataframe_docstrings_unit_test_failures
Mar 3, 2026
Merged

ajpotts merged 3 commits into
Bears-R-Us:mainfrom
ajpotts:5449_test_dataframe_docstrings_unit_test_failures

Conversation

@ajpotts

@ajpotts ajpotts commented Mar 2, 2026 •

Copy link
Copy Markdown
Contributor

This example was failing doctest on multi-locale:

>>> from pathlib import Path
>>> my_path = os.path.join(os.getcwd(), 'csv_output')
>>> Path(my_path).mkdir(parents=True, exist_ok=True)

>>> df = ak.DataFrame({"A":[1,2],"B":[3,4]})
>>> df.to_csv(my_path)
>>> df2 = ak.DataFrame.read_csv(my_path + "_LOCALE0000")
>>> df2

The error is likely due to the line: df2 = ak.DataFrame.read_csv(my_path + "_LOCALE0000"), which will potentially read different data depending on the number of locales. Adding # doctest: +SKIP to avoid the failures.

Closes #5449: test_dataframe_docstrings unit test failures

@jabraham17 jabraham17 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noting that I wish this was only a skipif for multilocale, not for all configs. But looks good to me

@ajpotts
ajpotts marked this pull request as ready for review March 2, 2026 20:57
@ajpotts
ajpotts enabled auto-merge March 2, 2026 20:57
@ajpotts
ajpotts disabled auto-merge March 3, 2026 12:41
@ajpotts
ajpotts merged commit dee36a7 into Bears-R-Us:main Mar 3, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_dataframe_docstrings unit test failures

2 participants