Skip to content

tests.compliance.time.test_time_compliance.TestMethods: test_value_counts[data-False] failed #205

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 = 
[             datetime.time(0, 0), datetime.time(0, 14, 24, 123456),
 datetime.time(0, 28, 48, 246912), da...time(1, 40, 48, 864192),
 datetime.time(1, 55, 12, 987648),  datetime.time(2, 9, 37, 111104)]
Length: 10, dtype: dbtime
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.TimeArray(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/time/test_time_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