-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Refactored old style classes to new style classes #2179
Refactored old style classes to new style classes #2179
Conversation
Thanks @RonnyPfannschmidt. Let me know if I need to edit AUTHORS and the CHANGELOG. |
@mandeep oh, that would make sense, it is a slight behaviour change after all |
I agree that an entry to the CHANGELOG is in order. 👍 Thanks @mandeep for the PR, appreciate it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a CHANGELOG entry mentioning this change. 😁
yay - kudos @mandeep 🎉 |
Thanks! @RonnyPfannschmidt @nicoddemus |
As discussed in the mailing list, unfortunately this might break APIs due to the subtle differences between new and old-style classes (see pytest-dev#2398). This reverts commit d4afa15 from PR pytest-dev#2179.
Added (object) to the end of class names as discussed in #2147. I searched the pytest package folder with the regex "class [A-Z]\w*(?<!():" and added (object) before the colon of each class. The tests passed as expected. Thoughts?