summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKen Dreyer <kdreyer@redhat.com>2015-01-23 12:22:28 -0700
committerKen Dreyer <ktdreyer@ktdreyer.com>2015-01-23 12:27:58 -0700
commitf40fdf523a545035d3f6ee36a31d50993feac14b (patch)
treeecab4fddd4e8775968c65689f4ad155fbbe606d4 /test
parent5025b51d3bd77a681576fcfb9cec8fe1ba5cce34 (diff)
downloadmsgpack-python-f40fdf523a545035d3f6ee36a31d50993feac14b.tar.gz
tests: add pytest 2.3 compatibility
Adjust the skipif conditional to use the older pytest 2.3 syntax. (This allows the tests to pass with the system pytest package on RHEL 7.0, since RHEL 7.0 ships pytest 2.3.5.)
Diffstat (limited to 'test')
-rw-r--r--test/test_unpack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_unpack.py b/test/test_unpack.py
index 8d0d949..c0d711c 100644
--- a/test/test_unpack.py
+++ b/test/test_unpack.py
@@ -16,7 +16,7 @@ def test_unpack_array_header_from_file():
unpacker.unpack()
-@mark.skipif(not hasattr(sys, 'getrefcount'),
+@mark.skipif("not hasattr(sys, 'getrefcount') == True",
reason='sys.getrefcount() is needed to pass this test')
def test_unpacker_hook_refcnt():
result = []