Skip to content

Use assertEqual instead of assertEquals for Python 3.11 compatibility. #235

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 2 commits into from
Mar 22, 2022
Merged

Use assertEqual instead of assertEquals for Python 3.11 compatibility. #235

merged 2 commits into from
Mar 22, 2022

Conversation

tirkarthi
Copy link
Contributor

Deprecated aliases have been removed in python/cpython#28268

@rocky
Copy link
Member

rocky commented Mar 21, 2022

@tirkarthi Thanks for the PR.

To fix the autoblack problem, locally run in the mathics-code:

$ pip install pre-commit
$ pre-commit

It would be good to convert all of the unit tests (from the 2.7 days) to pytests, if you are up for it. If not we can just commit this and continue. Your thoughts?

@tirkarthi
Copy link
Contributor Author

Formatted with black. There is a migration tool from pytest I can give a try in another PR if I find time : https://github.com/pytest-dev/unittest2pytest

@rocky
Copy link
Member

rocky commented Mar 22, 2022

Ok - thanks.

@rocky rocky merged commit 0c84730 into Mathics3:master Mar 22, 2022
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.

2 participants