mirror of https://github.com/MISP/PyMISP
chg: Skip sample upload test on python 3.4
parent
e589acd495
commit
1cb1672998
|
@ -6,6 +6,7 @@ import requests_mock
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import six
|
import six
|
||||||
|
import sys
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
|
|
||||||
import pymisp as pm
|
import pymisp as pm
|
||||||
|
@ -443,6 +444,8 @@ class TestOffline(unittest.TestCase):
|
||||||
self.assertEqual((False, None), pymisp.download_samples())
|
self.assertEqual((False, None), pymisp.download_samples())
|
||||||
|
|
||||||
def test_sample_upload(self, m):
|
def test_sample_upload(self, m):
|
||||||
|
if sys.api_version <= (3, 4):
|
||||||
|
return unittest.SkipTest()
|
||||||
self.initURI(m)
|
self.initURI(m)
|
||||||
pymisp = PyMISP(self.domain, self.key)
|
pymisp = PyMISP(self.domain, self.key)
|
||||||
upload = pymisp.upload_sample("tmux", "tests/viper-test-files/test_files/tmux" , 1)
|
upload = pymisp.upload_sample("tmux", "tests/viper-test-files/test_files/tmux" , 1)
|
||||||
|
|
Loading…
Reference in New Issue