Skip to content

for gh-468 #477

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

Closed
wants to merge 3 commits into from
Closed

for gh-468 #477

wants to merge 3 commits into from

Conversation

ramvikrams
Copy link
Contributor

Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we want to use a decorator on top of a test function, but rather have something that lets us skip running a particular line of code based on the version so that we can keep the offending lines rather isolated.

So, for example, this test in test_scalars.py is failing:

check(assert_type(p + offset_index, pd.PeriodIndex), pd.PeriodIndex)

It is failing because in the future the result will be a pd.Index. So we will leave the typing alone, but need to change what is passed to check() based on the version number.

Other tests are changing because of date/time parsing, in which case the warnings have to be checked based on the version number.

@@ -136,3 +136,21 @@ def pytest_warns_bounded(
return nullcontext()
else:
return suppress(upper_exception)


def nigthly_test_skip(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nightly is misspelled

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'll correct it

@ramvikrams
Copy link
Contributor Author

ramvikrams commented Dec 19, 2022

It is failing because in the future the result will be a pd.Index. So we will leave the typing alone, but need to change what is passed to check() based on the version number.

What is to be done is check a test on the version speicifed and check other test normally, have I understood it correctly

@Dr-Irv
Copy link
Collaborator

Dr-Irv commented Dec 19, 2022

What is to be done is check a test on the version speicifed and check other test normally, have I understood it correctly

Do the test as it is now if the version is 1.5.x, and use the new result if the version is later than that.

Also have to deal with the datetime failures, since that warning has changed.

@Dr-Irv Dr-Irv mentioned this pull request Dec 28, 2022
1 task
@Dr-Irv
Copy link
Collaborator

Dr-Irv commented Dec 29, 2022

closing in favor of #485

@Dr-Irv Dr-Irv closed this Dec 29, 2022
@ramvikrams ramvikrams deleted the t10 branch January 23, 2023 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nightly failing - possibly due to pandas bug
2 participants