Skip to content

Commit 173ee9e

Browse files
committed
Pep8 and code style improvements
1 parent b000d5b commit 173ee9e

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

tests/test_androidmodule_ctypes_finder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
try: # Python 3+
55
from unittest import mock
66
from unittest.mock import MagicMock
7-
except: # Python 2
7+
except ImportError: # Python 2
88
import mock
99
from mock import MagicMock
1010
import os

tests/test_recommendations.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import unittest
22
from os.path import join
3-
from sys import version_info, version as py_version
3+
from sys import version as py_version
44

55
from unittest import mock
66
from pythonforandroid.recommendations import (
@@ -34,7 +34,6 @@
3434
PY2_ERROR_TEXT,
3535
PY_VERSION_ERROR_TEXT,
3636
)
37-
import pythonforandroid.recommendations # for mocking constants only, other imports explicit
3837

3938
from pythonforandroid.util import BuildInterruptingException
4039

@@ -206,8 +205,8 @@ def test_check_ndk_api_warning_old_ndk(self):
206205
)
207206

208207
def test_check_python_version(self):
209-
"""
210-
With any version info lower than the minimum, we should get a
208+
"""With any version info lower than the minimum, we should get a
209+
BuildInterruptingException with an appropriate message.
211210
"""
212211
with mock.patch('sys.version_info') as fake_version_info:
213212

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ commands = flake8 pythonforandroid/ tests/ ci/
3131

3232
[flake8]
3333
ignore =
34-
E123, E124, E126,
34+
E123, E124, E126, E127, E129
3535
E226,
3636
E402, E501,
3737
W503,

0 commit comments

Comments
 (0)