#N/A: Replace PY3 checks with PY2 checks
This commit is contained in:
+3
-3
@@ -162,10 +162,10 @@ class TestCache(object):
|
|||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def key(self):
|
def key(self):
|
||||||
if six.PY3:
|
if six.PY2:
|
||||||
return 'tests.test_utils.<function TestCache.fn.<locals>.fn '
|
|
||||||
else:
|
|
||||||
return 'tests.test_utils.<function fn '
|
return 'tests.test_utils.<function fn '
|
||||||
|
else:
|
||||||
|
return 'tests.test_utils.<function TestCache.fn.<locals>.fn '
|
||||||
|
|
||||||
def test_with_blank_cache(self, shelve, fn, key):
|
def test_with_blank_cache(self, shelve, fn, key):
|
||||||
assert shelve == {}
|
assert shelve == {}
|
||||||
|
|||||||
Reference in New Issue
Block a user