Fix import test in unit tests, flake8 flag

This commit is contained in:
Kenneth Giusti
2015-06-05 15:25:45 -04:00
parent 39076649dd
commit 2180e84d22
4 changed files with 11 additions and 4 deletions

View File

@@ -23,4 +23,4 @@ from pyngus.link import SenderLink, SenderEventHandler
from pyngus.sockets import read_socket_input
from pyngus.sockets import write_socket_output
VERSION = (1, 3, 1) # major, minor, fix
VERSION = (1, 4, 0) # major, minor, fix

View File

@@ -19,7 +19,7 @@
from setuptools import setup
_VERSION = "1.3.1" # NOTE: update __init__.py too!
_VERSION = "1.4.0rc1" # NOTE: update __init__.py too!
# I hack, therefore I am (productive) Some distros (which will not be named)
# don't use setup.py to install the proton python module. In this case, pip

View File

@@ -20,7 +20,13 @@
import gc
import time
from proton import VERSION_MAJOR, VERSION_MINOR
try:
from proton import VERSION_MAJOR, VERSION_MINOR
except ImportError:
# older proton did not export version info
VERSION_MAJOR = 0
VERSION_MINOR = 0
import pyngus

View File

@@ -9,7 +9,8 @@ deps = -r{toxinidir}/test-requirements.txt
commands = {toxinidir}/tests/test-runner
[testenv:pep8]
commands = flake8 pyngus examples tests setup.py
commands = flake8 pyngus examples tests
flake8 --ignore F401 setup.py
[flake8]
show-source = True