diff options
| author | Hugo <hugovk@users.noreply.github.com> | 2020-01-08 23:00:04 +0200 |
|---|---|---|
| committer | Hugo <hugovk@users.noreply.github.com> | 2020-01-08 23:00:04 +0200 |
| commit | 619b80812ba0c35bfefa4b7ab5888168a541649c (patch) | |
| tree | 51f71ece223f335f039aebce9a7c73a71f1b6e55 | |
| parent | 8181f98e0c0055b047585ebe5f054332d454a7e4 (diff) | |
| download | python-decorator-git-619b80812ba0c35bfefa4b7ab5888168a541649c.tar.gz | |
Fix: sys.version compared to string (python3.10), use sys.version_info
| -rw-r--r-- | src/tests/test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/test.py b/src/tests/test.py index d73fbe4..7ddfaf4 100644 --- a/src/tests/test.py +++ b/src/tests/test.py @@ -29,7 +29,7 @@ def assertRaises(etype): raise Exception('Expected %s' % etype.__name__) -if sys.version >= '3.5': +if sys.version_info >= (3, 5): exec('''from asyncio import get_event_loop @decorator @@ -92,7 +92,7 @@ class DocumentationTestCase(unittest.TestCase): class ExtraTestCase(unittest.TestCase): def test_qualname(self): - if sys.version >= '3.3': + if sys.version_info >= (3, 3): self.assertEqual(doc.hello.__qualname__, 'hello') else: with assertRaises(AttributeError): |
