def test_inaccessible_scope_class(self):
        self.flakes("""
        class C:
            def doctest_stuff(self):
                '''
                    >>> m
                '''
                return 1
            m = 1
        """, m.UndefinedName)
Doctest may not access class scope.
dataset/ETHPy150Open pyflakes/pyflakes/pyflakes/test/test_doctests.py/Test.test_inaccessible_scope_class