-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST: Fixed version comparison #20469
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
This failed to skip for 3.5.x because the micro component made it False.
@@ -81,7 +81,7 @@ def test_fillna_frame(self): | |||
|
|||
class TestMethods(base.BaseMethodsTests): | |||
unhashable = pytest.mark.skip(reason="Unhashable") | |||
unstable = pytest.mark.skipif(sys.version_info <= (3, 5), | |||
unstable = pytest.mark.skipif(sys.version_info < (3, 6), |
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.
use PY36 from compat here
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, it's not obvious that compat.PY36
is 36 or greater. I thought it was exactly 3.6
Codecov Report
@@ Coverage Diff @@
## master #20469 +/- ##
==========================================
+ Coverage 91.83% 91.84% +<.01%
==========================================
Files 152 152
Lines 49231 49231
==========================================
+ Hits 45213 45215 +2
+ Misses 4018 4016 -2
Continue to review full report at Codecov.
|
@@ -4,6 +4,7 @@ | |||
import pytest | |||
|
|||
|
|||
from pandas.compat import PY36 |
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.
I think you can also import PY2
here and replace sys.version_info[0] == 2
on line 12 with it, as that is the exact definition of PY2
. That's the only remaining reference to sys
, so you could then remove the import sys
too.
* TST: Fixed version comparison This failed to skip for 3.5.x because the micro component made it False. * Use pandas.compat * More pandas compat
* TST: Fixed version comparison This failed to skip for 3.5.x because the micro component made it False. * Use pandas.compat * More pandas compat
* TST: Fixed version comparison This failed to skip for 3.5.x because the micro component made it False. * Use pandas.compat * More pandas compat
This failed to skip for 3.5.x because the micro component made it False.
closes #20468