Skip to content
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

Fix unit tests in Python 3.10 (Closes: #192) #211

Merged
merged 3 commits into from
Dec 6, 2022

Conversation

jspricke
Copy link
Contributor

@jspricke jspricke commented Dec 4, 2022

No description provided.

@davidhalter
Copy link
Owner

Thanks for trying to contribute.

The tests are unfortunately failing. Did you test against the different versions? I'm happy to merge this once the CI is passing.

@jspricke
Copy link
Contributor Author

jspricke commented Dec 4, 2022

I've pushed a new version working on Python 3.9 (Debian stable), 3.10 and 3.11 (Debian unstable). Can you trigger the CI again? The initial patch was for Debian unstable where we don't have older Python versions.

@davidhalter
Copy link
Owner

This time it looks much better. I feel like the linter should still be fixed, but 3.6 is probably something I have to look at.

@davidhalter
Copy link
Owner

Is it allowed that I can push changes to this branch? Because I would probably fix the Python 3.6 error this way.

@davidhalter
Copy link
Owner

davidhalter commented Dec 4, 2022

I just realized that 3.6 has been end of life for a year. Can you just remove it from the CI? I feel like that's probably the best way forward. A separate commit could then probably remove 3.6 support for Parso, but the CI could already be removed.

@jspricke
Copy link
Contributor Author

jspricke commented Dec 5, 2022

I've updated the Python versions, can you trigger the CI again?
Also feel free to push to this branch.

@davidhalter
Copy link
Owner

Unfortunately still some errors. I have tried to change the rules when the tests are run. So I feel like the tests will be run now when anybody not new to GitHub opens a PR. So I feel like you should now be able to see the results quicker.

Not compatible with Python >= 3.10:

pytest-dev/pytest#9195
@jspricke
Copy link
Contributor Author

jspricke commented Dec 5, 2022

Thanks for changing the CI restrictions. I assume the reduced coverage is ok? (all other tests pass now)

@davidhalter
Copy link
Owner

davidhalter commented Dec 6, 2022

Yeah, coverage doesn't matter as long as it's not something drastic.

Thanks a lot!

@davidhalter davidhalter merged commit df34112 into davidhalter:master Dec 6, 2022
@jspricke jspricke deleted the test_python3_10 branch December 6, 2022 20:21
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.

3 participants