Skip to content

tests.compliance.date.test_date_compliance.TestMethods: test_value_counts[data_missing-False] failed #203

Closed
@flaky-bot

Description

@flaky-bot

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 4087061
buildURL: Build Status, Sponge
status: failed

Test output
self = 
all_data = 
[NaT, datetime.date(2022, 1, 27)]
Length: 2, dtype: dbdate
dropna = False
@pytest.mark.parametrize("dropna", [True, False])
def test_value_counts(self, all_data, dropna):
    all_data = all_data[:10]
    if dropna:
        # Overridden from
        # https://github.com/pandas-dev/pandas/blob/main/pandas/tests/extension/base/methods.py
        # to avoid difference in dtypes.
        other = db_dtypes.DateArray(all_data[~all_data.isna()])
    else:
        other = all_data

    result = pandas.Series(all_data).value_counts(dropna=dropna).sort_index()
    expected = pandas.Series(other).value_counts(dropna=dropna).sort_index()
  self.assert_series_equal(result, expected)

E AttributeError: 'TestMethods' object has no attribute 'assert_series_equal'

tests/compliance/date/test_date_compliance.py:91: AttributeError

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: bigqueryIssues related to the googleapis/python-db-dtypes-pandas API.flakybot: flakyTells the Flaky Bot not to close or comment on this issue.flakybot: issueAn issue filed by the Flaky Bot. Should not be added manually.priority: p3Desirable enhancement or fix. May not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions