Skip to content

test_dataframe_docstrings unit test failures #5449

Closed

Description

@ajpotts

@jabraham17 reported test_dataframe_docstrings unit test failures

=================================== FAILURES ===================================
___________________ TestDataFrame.test_dataframe_docstrings ____________________

self = <dataframe_test.TestDataFrame object at 0x7fba916a5590>

    def test_dataframe_docstrings(self, df_test_base_tmp):
        import doctest

        from arkouda.pandas import dataframe

        with tempfile.TemporaryDirectory(dir=df_test_base_tmp) as tmp_dirname:
            old_cwd = os.getcwd()
            try:
                os.chdir(tmp_dirname)  # Change to temp directory
                result = doctest.testmod(
                    dataframe, optionflags=doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE
                )
            finally:
                os.chdir(old_cwd)  # Always return to original directory

>           assert result.failed == 0, f"Doctest failed: {result.failed} failures"
E           AssertionError: Doctest failed: 2 failures
E           assert 2 == 0
E            +  where 2 = TestResults(failed=2, attempted=390, skipped=3).failed

tests/pandas/dataframe_test.py:59: AssertionError
**********************************************************************
arkouda.pandas.dataframe.DataFrame.read_csv
Failed example:
    df2
Expected:
       A  B
    0  1  3
    1  2  4 (2 rows x 2 columns)
Got:
       A  B
    0  1  3 (1 rows x 2 columns)
**********************************************************************
Failed example:
    df2
Expected:
       A  B
    0  1  3
    1  2  4 (2 rows x 2 columns)
Got:
       A  B
    0  1  3 (1 rows x 2 columns)
**********************************************************************
2 items had failures:
   1 of   9 in arkouda.pandas.dataframe.DataFrame.read_csv
   1 of   9 in arkouda.pandas.dataframe.DataFrame.to_csv
***Test Failed*** 2 failures and 3 skipped tests.

Activity

  1. added
    bug
    on Mar 2, 2026
  2. added a commit that references this issue on Mar 2, 2026
    8f367c5
  3. added a commit that references this issue on Mar 3, 2026
    dee36a7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions