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

Avoid usage of unittest.makeSuite, removed from Python 3.13 #385

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

hroncok
Copy link
Contributor

@hroncok hroncok commented Oct 30, 2023

Patch generated by:

sed -i 's/unittest.makeSuite/unittest.defaultTestLoader.loadTestsFromTestCase/g' $(grep -rl makeSuite)

No idea if this will work on Python 2, hence only opening as a draft.

Patch generated by:

    sed -i 's/unittest.makeSuite/unittest.defaultTestLoader.loadTestsFromTestCase/g' $(grep -rl makeSuite)
@scoder
Copy link
Member

scoder commented Oct 30, 2023

Thanks. I've already started working on the port, while testing Cython in 3.13. The 3.11 test failures are known.

I might consider finally dropping Py2.7 support in the upcoming lxml 5.0. Seems a good time to do it.

@hroncok
Copy link
Contributor Author

hroncok commented Oct 30, 2023

Anyway, this seems to actually work with 2.7.

@hroncok hroncok marked this pull request as ready for review October 30, 2023 17:13
@scoder scoder merged commit 3418796 into lxml:master Oct 30, 2023
40 of 48 checks passed
@scoder
Copy link
Member

scoder commented Oct 30, 2023

Thanks

@hroncok hroncok deleted the python3.13 branch October 31, 2023 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants