From de7c53b0264ddcf63fb0c56fdb125072b92c0057 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Fri, 27 Oct 2017 15:56:54 +0200 Subject: Use sys.hexversion instead of .version_info --- tests/testutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/testutil.py') 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() -- cgit v1.2.3