Fixed flake8 errors.
This commit is contained in:
parent
89b9e6e5d6
commit
fddd95254e
|
@ -80,6 +80,7 @@ _error_files = []
|
||||||
_cached_modules = set()
|
_cached_modules = set()
|
||||||
_cached_filenames = []
|
_cached_filenames = []
|
||||||
|
|
||||||
|
|
||||||
def gen_filenames(only_new=False):
|
def gen_filenames(only_new=False):
|
||||||
"""
|
"""
|
||||||
Returns a list of filenames referenced in sys.modules and translation
|
Returns a list of filenames referenced in sys.modules and translation
|
||||||
|
|
|
@ -76,8 +76,8 @@ class TestFilenameGenerator(TestCase):
|
||||||
When calling a second time gen_filenames with only_new = True, only
|
When calling a second time gen_filenames with only_new = True, only
|
||||||
files from newly loaded modules should be given.
|
files from newly loaded modules should be given.
|
||||||
"""
|
"""
|
||||||
filenames1 = list(gen_filenames())
|
list(gen_filenames())
|
||||||
from fractions import Fraction
|
from fractions import Fraction # NOQA
|
||||||
filenames2 = list(gen_filenames(only_new=True))
|
filenames2 = list(gen_filenames(only_new=True))
|
||||||
self.assertEqual(len(filenames2), 1)
|
self.assertEqual(len(filenames2), 1)
|
||||||
self.assertTrue(filenames2[0].endswith('fractions.py'))
|
self.assertTrue(filenames2[0].endswith('fractions.py'))
|
||||||
|
|
Loading…
Reference in New Issue