def test_ignoredInFunction(self):
        self.flakes('''
        def foo():
            import bar
            __all__ = ["bar"]
        ''', m.UnusedImport, m.UnusedVariable)
L{TaskLevel.toString} serializes the object to a Unicode string.
dataset/ETHPy150Open patrys/PythonChecker/pyflakes/test/test_imports.py/TestSpecialAll.test_ignoredInFunction--crossover with--dataset/ETHPy150Open ClusterHQ/eliot/eliot/tests/test_action.py/TaskLevelTests.test_toString