-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Remove old nose testing code #9918
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
Conversation
Not sure why I closed this... |
3ee1425
to
a305edc
Compare
Ah, I see it's scheduled for removal in |
f9687c0
to
96e8c49
Compare
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.
Will be happy to see this flaky test gone.
@@ -41,23 +41,13 @@ def _knownfailureif(fail_condition, msg=None, known_exception_class=None): | |||
if the exception is an instance of this class. (Default = None) | |||
|
|||
""" | |||
if is_called_from_pytest(): |
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.
This function is private, so we should probably just replace its callers with the direct pytest marker call.
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.
technically it is public but we should still do the switch and deprecate 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.
No it isn't. The one being removed below is public, but it's already deprecated. This one is private.
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.
Ah, you meant is_called_from_pytest
; I meant the function in which this code exists: _knownfailureif
.
eab4692
to
822d395
Compare
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.
but see @QuLogic's suggestion to just inline _knownfailureif
.
Let's get this merged asap? There's a flaky test it gets rid of :) |
8fc8bdf
to
b36367e
Compare
Great, going to wait for the rebased tests to pass and then will merge. |
Lots of old code that I guess was used when we used
nose
for testing. I've just nuked it since it was in an underscored folder, happy to deprecate instead.