mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-22 13:23:17 +00:00
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.)
This commit is contained in:
parent
5025b51d3b
commit
f40fdf523a
1 changed files with 1 additions and 1 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue