From 01cdc123ebfa50c74aa5b772116c9fb79e2a559b Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Thu, 15 Jul 2021 12:03:11 -0400 Subject: [PATCH] test: Fix sys.version_info comparison --- tests/test_py3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_py3.py b/tests/test_py3.py index a5a0fc7b..773e0e2c 100644 --- a/tests/test_py3.py +++ b/tests/test_py3.py @@ -244,7 +244,7 @@ def test_writerows(self): self.assertEqual(result, 'line_number,a,b,c\n1,1,2,☃\n') -@unittest.skipIf(six.PY2 or platform.system() == 'Linux' and sys.version_info == (3, 6), +@unittest.skipIf(six.PY2 or platform.system() == 'Linux' and sys.version_info[:2] == (3, 6), "Not supported in Python 2. Test fails inexplicably on Linux in Python 3.6.") class TestSniffer(unittest.TestCase): def test_sniffer(self):