diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-10-27 15:56:54 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-10-27 15:56:54 +0200 |
commit | de7c53b0264ddcf63fb0c56fdb125072b92c0057 (patch) | |
tree | a175fbf2dc0ceaba7e305f46a91d7d281f195369 /tests/testutil.py | |
parent | 9f5e84d4917b29fe6d7668f4742da8769b4ff515 (diff) | |
download | gemato-de7c53b0264ddcf63fb0c56fdb125072b92c0057.tar.gz |
Use sys.hexversion instead of .version_info
Diffstat (limited to 'tests/testutil.py')
-rw-r--r-- | tests/testutil.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testutil.py b/tests/testutil.py index 89feb3c..2a002c1 100644 --- a/tests/testutil.py +++ b/tests/testutil.py @@ -14,7 +14,7 @@ import unittest class LoggingTestCase(unittest.TestCase): def setUp(self): - if sys.version_info < (3,): + if sys.hexversion < 0x03000000: self.log = io.BytesIO() else: self.log = io.StringIO() |