chg: Skip sample upload test on python 3.4

pull/186/head
Raphaël Vinot 2018-01-26 21:36:09 +01:00
parent e589acd495
commit 1cb1672998
1 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import requests_mock
import json
import os
import six
import sys
from io import BytesIO
import pymisp as pm
@ -443,6 +444,8 @@ class TestOffline(unittest.TestCase):
self.assertEqual((False, None), pymisp.download_samples())
def test_sample_upload(self, m):
if sys.api_version <= (3, 4):
return unittest.SkipTest()
self.initURI(m)
pymisp = PyMISP(self.domain, self.key)
upload = pymisp.upload_sample("tmux", "tests/viper-test-files/test_files/tmux" , 1)