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

Refactored old style classes to new style classes #2179

Merged
merged 2 commits into from
Jan 10, 2017

Conversation

mandeep
Copy link
Contributor

@mandeep mandeep commented Jan 9, 2017

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?

@coveralls
Copy link

Coverage Status

Coverage remained the same at 92.704% when pulling d4afa15 on mandeep:new-style-classes into 3494dd0 on pytest-dev:features.

@mandeep
Copy link
Contributor Author

mandeep commented Jan 9, 2017

Thanks @RonnyPfannschmidt. Let me know if I need to edit AUTHORS and the CHANGELOG.

@RonnyPfannschmidt
Copy link
Member

@mandeep oh, that would make sense, it is a slight behaviour change after all

@nicoddemus
Copy link
Member

I agree that an entry to the CHANGELOG is in order. 👍

Thanks @mandeep for the PR, appreciate it.

Copy link
Member

@nicoddemus nicoddemus left a 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. 😁

@coveralls
Copy link

Coverage Status

Coverage remained the same at 92.704% when pulling e412ea1 on mandeep:new-style-classes into 3494dd0 on pytest-dev:features.

@RonnyPfannschmidt RonnyPfannschmidt merged commit 6c011f4 into pytest-dev:features Jan 10, 2017
@RonnyPfannschmidt
Copy link
Member

yay - kudos @mandeep 🎉

@mandeep
Copy link
Contributor Author

mandeep commented Jan 10, 2017

Thanks! @RonnyPfannschmidt @nicoddemus

nicoddemus added a commit to nicoddemus/pytest that referenced this pull request May 17, 2017
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.
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.

None yet

4 participants