New python importer fails this test

16 views
Skip to first unread message

Edward K. Ream

unread,
Dec 7, 2021, 5:43:03 PM12/7/21
to leo-editor
def test_mypy_data_dot_py(self):

    # From mypy/mypy/test/data.pyi

    s = """
   
        def __init__(self,
                 parent: 'DataSuiteCollector',
                 suite: 'DataSuite',
                 line: int) -> None:
        super().__init__(name, parent)
        if ((platform == 'windows' and sys.platform != 'win32')
                or (platform == 'posix' and sys.platform == 'win32')):
            skip = True
        self.skip = skip

    """
    self.run_test(s)

There are several failures among the mypy sources.

Edward

Edward K. Ream

unread,
Dec 7, 2021, 5:44:52 PM12/7/21
to leo-editor
On Tuesday, December 7, 2021 at 4:43:03 PM UTC-6 Edward K. Ream wrote:

    # From mypy/mypy/test/data.pyi

Oops. The file is data.py, not data.pyi.  The file is part of https://github.com/python/mypy

Edward
Reply all
Reply to author
Forward
0 new messages