This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author alexchandel
Recipients alexchandel
Date 2020-07-14.21:49:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1594763364.19.0.785950162701.issue41297@roundup.psfhosted.org>
In-reply-to
Content
heapq.py imports doctest in the last 4 lines to perform unit tests:

    if __name__ == "__main__":
    
        import doctest # pragma: no cover
        print(doctest.testmod()) # pragma: no cover

This disrupts dependency tracking modules and software, like modulegraph and pyinstaller, as doctest brings in many dependencies (including ctypes as of 3.8).

This functionality could be factored out into a separate unit-testing file.
History
Date User Action Args
2020-07-14 21:49:24alexchandelsetrecipients: + alexchandel
2020-07-14 21:49:24alexchandelsetmessageid: <1594763364.19.0.785950162701.issue41297@roundup.psfhosted.org>
2020-07-14 21:49:24alexchandellinkissue41297 messages
2020-07-14 21:49:24alexchandelcreate