diff --git a/setup.cfg b/setup.cfg index 79bc67848fff34a6645702d4173e425bc2ccbc96..0ab590849671204c34fb78ec56f1821bc30816b4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,6 @@ [bdist_wheel] -# This flag says that the code is written to work on both Python 2 and Python -# 3. If at all possible, it is good practice to do this. If you cannot, you -# will need to generate wheels for each Python version that you support. universal=1 + +[flake8] +ignore=F403 +exclude = .tox,*.egg,build,data,unshare/constants.py diff --git a/tests/basic_assertions_test.py b/tests/test_basic_assertions.py similarity index 85% rename from tests/basic_assertions_test.py rename to tests/test_basic_assertions.py index 27c0a73889e9ad637c22422b06b8a32212b514f5..fc1acdb48a44b99f64346c87b9c8748efd99ac15 100755 --- a/tests/basic_assertions_test.py +++ b/tests/test_basic_assertions.py @@ -1,7 +1,7 @@ import unshare -def import_assestions(): +def test_import_assestions(): for macro in 'CLONE_NEWUTS', 'MS_SHARED': assert macro in dir(unshare) for function in 'clone', 'pivot_root': diff --git a/tox.ini b/tox.ini index bcfe2328ea56df8f7b181364d9798ee1f7ba52f6..9992870f6645683dd8f5e9f6e22d41cdcdff2350 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,3 @@ -[flake8] -ignore=F403 -exclude = .tox,*.egg,build,data,unshare/constants.py - [tox] envlist = py{2,3} @@ -18,4 +14,4 @@ commands = check-manifest --ignore tox.ini,tests* python setup.py check -m -r -s flake8 . - py.test + py.test --verbose