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 amaury.forgeotdarc
Recipients JohnJackson, amaury.forgeotdarc, barry, gpolo, kiilerix
Date 2008-04-25.17:37:59
SpamBayes Score 0.037711807
Marked as misclassified No
Message-id <1209145080.63.0.132363469969.issue2622@psf.upfronthosting.co.za>
In-reply-to
Content
> But such a test doesn't belong in the test suite.

py2exe uses the "modulefinder" module to find dependencies.

I tried this command::

    ./python -m modulefinder Lib\email\message.py

And among the output, there is::

    ....
    ? email.Generator imported from __main__, email.message
    ? email.Iterators imported from __main__, email.message
    ....

It surely can be turned into a unit test. For example::

    import email.message
    filename = email.message.__file__
    if filename.endswith(".pyc"):
        filename = filename[:-1]

    import modulefinder
    mf=modulefinder.ModuleFinder()
    mf.run_script(filename)
    assert "email.Generator" not in mf.any_missing()
History
Date User Action Args
2008-04-25 17:38:00amaury.forgeotdarcsetspambayes_score: 0.0377118 -> 0.037711807
recipients: + amaury.forgeotdarc, barry, gpolo, kiilerix, JohnJackson
2008-04-25 17:38:00amaury.forgeotdarcsetspambayes_score: 0.0377118 -> 0.0377118
messageid: <1209145080.63.0.132363469969.issue2622@psf.upfronthosting.co.za>
2008-04-25 17:37:59amaury.forgeotdarclinkissue2622 messages
2008-04-25 17:37:59amaury.forgeotdarccreate