fix: sys.api_version -> sys.version_info

pull/186/head
Raphaël Vinot 2018-01-26 21:41:53 +01:00
parent 1cb1672998
commit ab9e6aabf5
1 changed files with 1 additions and 1 deletions

View File

@ -444,7 +444,7 @@ class TestOffline(unittest.TestCase):
self.assertEqual((False, None), pymisp.download_samples())
def test_sample_upload(self, m):
if sys.api_version <= (3, 4):
if sys.version_info <= (3, 4):
return unittest.SkipTest()
self.initURI(m)
pymisp = PyMISP(self.domain, self.key)