mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed flake8 errors.
This commit is contained in:
parent
89b9e6e5d6
commit
fddd95254e
2 changed files with 3 additions and 2 deletions
|
@ -76,8 +76,8 @@ class TestFilenameGenerator(TestCase):
|
|||
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'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue