diff options
| author | Christopher Medrela <chris.medrela@gmail.com> | 2013-11-26 10:43:46 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-11-28 08:50:11 -0500 |
| commit | 7477a4ffde4781f4e84503e66d7f775074089887 (patch) | |
| tree | d3bbeaa6e808deb92c0fb86cf4ae8163539d84b1 /tests | |
| parent | d1df395f3ae768e495a105db2f85352c44ba1c28 (diff) | |
Fixed E125 pep8 warnings
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/defer/tests.py | 2 | ||||
| -rwxr-xr-x | tests/runtests.py | 10 | ||||
| -rw-r--r-- | tests/wsgi/tests.py | 8 |
3 files changed, 10 insertions, 10 deletions
diff --git a/tests/defer/tests.py b/tests/defer/tests.py index b66b173f7a..266a851ffe 100644 --- a/tests/defer/tests.py +++ b/tests/defer/tests.py @@ -11,7 +11,7 @@ class DeferTests(TestCase): count = 0 for field in obj._meta.fields: if isinstance(obj.__class__.__dict__.get(field.attname), - DeferredAttribute): + DeferredAttribute): count += 1 self.assertEqual(count, num) diff --git a/tests/runtests.py b/tests/runtests.py index 08eaf6ed0e..f37c0e9dda 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -69,11 +69,11 @@ def get_test_modules(): for modpath, dirpath in discovery_paths: for f in os.listdir(dirpath): if ('.' in f or - # Python 3 byte code dirs (PEP 3147) - f == '__pycache__' or - f.startswith('sql') or - os.path.basename(f) in SUBDIRS_TO_SKIP or - os.path.isfile(f)): + # Python 3 byte code dirs (PEP 3147) + f == '__pycache__' or + f.startswith('sql') or + os.path.basename(f) in SUBDIRS_TO_SKIP or + os.path.isfile(f)): continue modules.append((modpath, f)) return modules diff --git a/tests/wsgi/tests.py b/tests/wsgi/tests.py index 57972d2e9a..90397bb742 100644 --- a/tests/wsgi/tests.py +++ b/tests/wsgi/tests.py @@ -93,15 +93,15 @@ class GetInternalWSGIApplicationTest(unittest.TestCase): @override_settings(WSGI_APPLICATION="wsgi.noexist.app") def test_bad_module(self): with six.assertRaisesRegex(self, - ImproperlyConfigured, - r"^WSGI application 'wsgi.noexist.app' could not be loaded; Error importing.*"): + ImproperlyConfigured, + r"^WSGI application 'wsgi.noexist.app' could not be loaded; Error importing.*"): get_internal_wsgi_application() @override_settings(WSGI_APPLICATION="wsgi.wsgi.noexist") def test_bad_name(self): with six.assertRaisesRegex(self, - ImproperlyConfigured, - r"^WSGI application 'wsgi.wsgi.noexist' could not be loaded; Module.*"): + ImproperlyConfigured, + r"^WSGI application 'wsgi.wsgi.noexist' could not be loaded; Module.*"): get_internal_wsgi_application() |
