Browse files

Fixed flake8 errors.

  • Loading branch information...
1 parent 89b9e6e commit fddd95254e3ccd8c6836e56b8f5481a0a13568bd @timgraham timgraham committed Jul 7, 2014
Showing with 3 additions and 2 deletions.
  1. +1 −0 django/utils/autoreload.py
  2. +2 −2 tests/utils_tests/test_autoreload.py
View
1 django/utils/autoreload.py
@@ -80,6 +80,7 @@
_cached_modules = set()
_cached_filenames = []
+
def gen_filenames(only_new=False):
"""
Returns a list of filenames referenced in sys.modules and translation
View
4 tests/utils_tests/test_autoreload.py
@@ -76,8 +76,8 @@ def test_only_new_files(self):
When calling a second time gen_filenames with only_new = True, only
files from newly loaded modules should be given.
"""
- filenames1 = list(gen_filenames())
- from fractions import Fraction
+ list(gen_filenames())
+ from fractions import Fraction # NOQA
filenames2 = list(gen_filenames(only_new=True))
self.assertEqual(len(filenames2), 1)
self.assertTrue(filenames2[0].endswith('fractions.py'))

0 comments on commit fddd952

Please sign in to comment.