[
https://issues.apache.org/jira/browse/BEAM-12768?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Luke Cwik updated BEAM-12768:
-----------------------------
Fix Version/s: 2.33.0
Resolution: Fixed
Status: Resolved (was: Open)
> test_df_agg_method_invalid_kwarg_raises test too strict on error/string
> matching
> --------------------------------------------------------------------------------
>
> Key: BEAM-12768
> URL: https://issues.apache.org/jira/browse/BEAM-12768
> Project: Beam
> Issue Type: Bug
> Components: sdk-py-core, test-failures
> Affects Versions: 2.33.0
> Reporter: Luke Cwik
> Assignee: Luke Cwik
> Priority: P0
> Fix For: 2.33.0
>
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> It looks like possibly the restricted pandas version to 1.3.0 made the type
> error message contents change slightly. Looks like we should relax
> https://github.com/apache/beam/blame/faac725e98f8422b172a77e8c898af03c15b74c6/sdks/python/apache_beam/dataframe/frames_test.py#L98
> to possibly be a substring test
> Example failure:
> https://ci-beam.apache.org/job/beam_PreCommit_Python_Cron/4563/testReport/junit/apache_beam.dataframe.frames_test/AggregationTest/test_df_agg_method_invalid_kwarg_raises/
> {noformat}
> AssertionError: Expected TypeError("mean() got an unexpected keyword argument
> 'bool_only'") to be raised, but got TypeError("DataFrame constructor called
> with incompatible data and dtype: mean() got an unexpected keyword argument
> 'bool_only'")
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)