Skip to content

Commit

Permalink
test: Fix sys.version_info comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jul 15, 2021
1 parent a24ea5f commit 01cdc12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 01cdc12

Please sign in to comment.