We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0699659 commit 4fb963bCopy full SHA for 4fb963b
pandas/tests/extension/json/test_json.py
@@ -1,15 +1,14 @@
1
import operator
2
-import sys
3
4
import pytest
5
6
+from pandas.compat import PY2, PY36
7
from pandas.tests.extension import base
8
9
from .array import JSONArray, JSONDtype, make_data
10
11
-pytestmark = pytest.mark.skipif(sys.version_info[0] == 2,
12
- reason="Py2 doesn't have a UserDict")
+pytestmark = pytest.mark.skipif(PY2, reason="Py2 doesn't have a UserDict")
13
14
15
@pytest.fixture
@@ -81,7 +80,7 @@ def test_fillna_frame(self):
81
80
82
class TestMethods(base.BaseMethodsTests):
83
unhashable = pytest.mark.skip(reason="Unhashable")
84
- unstable = pytest.mark.skipif(sys.version_info <= (3, 5),
+ unstable = pytest.mark.skipif(not PY36, # 3.6 or higher
85
reason="Dictionary order unstable")
86
87
@unhashable
0 commit comments