Remove some python versions from travis

pull/111/head
Raphaël Vinot 2017-08-25 17:48:57 +02:00
parent a5531990ae
commit ed441d6356
2 changed files with 15 additions and 11 deletions

View File

@ -2,15 +2,19 @@ language: python
cache: pip
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test' ]
packages:
- libstdc++6
- libfuzzy-dev
python:
- "2.7"
- "3.4"
- "3.5"
- "3.5-dev"
- "3.6"
- "3.6-dev"
- "3.7-dev"
- "nightly"
install:
- pip install -U nose
@ -18,6 +22,7 @@ install:
- pip install codecov
- pip install requests-mock pytest
- pip install https://github.com/lief-project/packages/raw/lief-master-latest/pylief-0.7.0.dev.zip
- pip install git+https://github.com/kbandla/pydeep.git
- pip install python-magic
- pip install .
- pushd tests

View File

@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-
from pymisp.tools import FileObject, PEObject, ELFObject, MachOObject, MISPObjectException
import warnings
try:
import lief
@ -55,15 +56,13 @@ def make_binary_objects(filepath):
elif isinstance(lief_parsed, lief.MachO.Binary):
return make_macho_objects(lief_parsed, misp_file)
except lief.bad_format as e:
# print('\tBad format: ', e)
pass
warnings.warn('\tBad format: ', e)
except lief.bad_file as e:
# print('\tBad file: ', e)
pass
warnings.warn('\tBad file: ', e)
except lief.parser_error as e:
# print('\tParser error: ', e)
pass
warnings.warn('\tParser error: ', e)
except FileTypeNotImplemented as e: # noqa
# print(e)
pass
warnings.warn(e)
else:
warnings.warn('Please install lief, documentation here: https://github.com/lief-project/LIEF')
return misp_file, None, None