summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorHugo <hugovk@users.noreply.github.com>2020-01-08 23:02:12 +0200
committerHugo <hugovk@users.noreply.github.com>2020-01-08 23:02:12 +0200
commita3ead5af4f9ed3575004c8a7ec74138c26c52dd7 (patch)
tree83e9bd85f723c4581d4e1cff232ae663d70fd9a4 /src/tests
parent619b80812ba0c35bfefa4b7ab5888168a541649c (diff)
downloadpython-decorator-git-a3ead5af4f9ed3575004c8a7ec74138c26c52dd7.tar.gz
Fix: sys.version compared to string (python10), use sys.version_info
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/documentation.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/documentation.py b/src/tests/documentation.py
index 60a37a2..2256fea 100644
--- a/src/tests/documentation.py
+++ b/src/tests/documentation.py
@@ -1421,7 +1421,7 @@ Another attribute copied from the original function is ``__qualname__``,
the qualified name. This attribute was introduced in Python 3.3.
"""
-if sys.version < '3':
+if sys.version_info < (3,):
function_annotations = ''
today = time.strftime('%Y-%m-%d')
@@ -1654,7 +1654,7 @@ def a_test_for_pylons():
"""
-if sys.version >= '3': # tests for signatures specific to Python 3
+if sys.version_info >= (3,): # tests for signatures specific to Python 3
def test_kwonlydefaults():
"""