Fix Python version checking in Python tests

This commit is contained in:
William S Fulton 2013-05-24 18:57:26 +01:00
commit 074c0039db
3 changed files with 3 additions and 3 deletions

View file

@ -122,7 +122,7 @@ check(A.func3static.__doc__, "\n"
" "
)
if sys.version[0:2] > (2, 4):
if sys.version_info[0:2] > (2, 4):
# Python 2.4 does not seem to work
check(A.variable_a.__doc__, "A_variable_a_get(self) -> int")
check(A.variable_b.__doc__, "A_variable_b_get(A self) -> int")