8000 tests: add pytest 2.3 compatibility · overcastcloud/msgpack-python@f40fdf5 · GitHub
[go: up one dir, main page]

Skip to content

Commit f40fdf5

Browse files
committed
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.)
1 parent 5025b51 commit f40fdf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_unpack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def test_unpack_array_header_from_file():
1616
unpacker.unpack()
1717

1818

19-
@mark.skipif(not hasattr(sys, 'getrefcount'),
19+
@mark.skipif("not hasattr(sys, 'getrefcount') == True",
2020
reason='sys.getrefcount() is needed to pass this test')
2121
def test_unpacker_hook_refcnt():
2222
result = []

0 commit comments

Comments
 (0)
0