diff options
Diffstat (limited to 'pyflakes/test/test_imports.py')
-rw-r--r-- | pyflakes/test/test_imports.py | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/pyflakes/test/test_imports.py b/pyflakes/test/test_imports.py index 86e1d37..f83e77e 100644 --- a/pyflakes/test/test_imports.py +++ b/pyflakes/test/test_imports.py @@ -1068,19 +1068,14 @@ class TestSpecialAll(TestCase): __all__ += ['c', 'd'] ''', m.UndefinedExport, m.UndefinedExport) - def test_unrecognizable(self): + def test_concatenationAssignment(self): """ - If C{__all__} is defined in a way that can't be recognized statically, - it is ignored. + The C{__all__} variable is defined through list concatenation. """ self.flakes(''' - import foo - __all__ = ["f" + "oo"] - ''', m.UnusedImport) - self.flakes(''' - import foo - __all__ = [] + ["foo"] - ''', m.UnusedImport) + import sys + __all__ = ['a'] + ['b'] + ['c'] + ''', m.UndefinedExport, m.UndefinedExport, m.UndefinedExport, m.UnusedImport) def test_unboundExported(self): """ |