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

Revert refactor of old-style to new-style classes #2414

Merged
merged 1 commit into from
May 19, 2017

Conversation

nicoddemus
Copy link
Member

As discussed in the mailing list, unfortunately this might break APIs
due to the subtle differences between new and old-style classes (see #2398).

This reverts commit d4afa15 from PR #2179.

After this is merged, we should re-open #2147.

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.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 92.347% when pulling d86c89e on nicoddemus:revert-new-style-classes into 6f407ef on pytest-dev:features.

@flub
Copy link
Member

flub commented May 17, 2017

As I understand it the original issue will turn into wontfix instead of re-opening, no? I guess other then documenting that this behaviour is different between python 2 and 3 we can't do much about this.

@nicoddemus
Copy link
Member Author

Good point. Alternatively we would have to somehow warn users two versions ahead of time, and I don't see that happening TBH.

Copy link
Member

@flub flub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me bug giving @RonnyPfannschmidt a chance to respond on the mailing list

@flub
Copy link
Member

flub commented May 17, 2017

Well, in theory we could announce it and then do the change in version 5.0. But I'm kind of being hopeful that dropping python 2.7 would have happened by then. That's probably a bit wishful thinking on my part.

But to be fair it's such a subtle change that no one will ever notice wherever we write it in the docs and then stuff will just break in 5.0 and then we'll be able to say "not our fault, told you so" which isn't terribly helpful or user friendly anyway.

@nicoddemus nicoddemus merged commit 3a4d372 into pytest-dev:features May 19, 2017
@nicoddemus nicoddemus deleted the revert-new-style-classes branch May 19, 2017 21:58
@nicoddemus
Copy link
Member Author

Merging as per agreement with @RonnyPfannschmidt on the mailing list.

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

3 participants