Skip to content

TST: Fix test warnings #47257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jun 8, 2022
Merged

TST: Fix test warnings #47257

merged 10 commits into from
Jun 8, 2022

Conversation

mroeschke
Copy link
Member

@mroeschke mroeschke added Testing pandas testing functions or related to the test suite Warnings Warnings that appear or should be added to pandas labels Jun 6, 2022
@mroeschke mroeschke added this to the 1.5 milestone Jun 6, 2022
@jbrockmendel
Copy link
Member

Beat me to it. The only one in my branch worth porting is in tests/frame/test_constructors.py

-        df.iloc[:, 2] = pd.array([45, 46], dtype=c.dtype)
+        with tm.assert_produces_warning(FutureWarning, match="will attempt to set"):
+            df.iloc[:, 2] = pd.array([45, 46], dtype=c.dtype)
         assert df.dtypes.iloc[2] == c.dtype

@mroeschke
Copy link
Member Author

Failure will be fixed by #47259

@jreback jreback merged commit ed7467c into pandas-dev:main Jun 8, 2022
@jreback
Copy link
Contributor

jreback commented Jun 8, 2022

cool

@mroeschke mroeschke deleted the tests/warnings branch June 8, 2022 23:54
yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite Warnings Warnings that appear or should be added to pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants