Skip to content

Commit d5164a6

Browse files
committed
Skip test_types_hashes for legacy Python
1 parent 3c06b8c commit d5164a6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

unittests/test_hash.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Distributed under the Boost Software License, Version 1.0.
44
# See http://www.boost.org/LICENSE_1_0.txt
55

6+
import sys
67
import unittest
78
import inspect
89

@@ -23,6 +24,12 @@ def test_types_hashes(self):
2324
these objects is not None.
2425
2526
"""
27+
28+
if sys.version_info[:2] <= (2,7):
29+
# _create_type_t_mockup calls inspect.signature, which does not
30+
# exist for legacy Python
31+
return
32+
2633
members = inspect.getmembers(declarations, inspect.isclass)
2734
for member in members:
2835
member_type = member[1]

0 commit comments

Comments
 (0)