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 ncoghlan
Recipients Arfrever, brett.cannon, eric.snow, ncoghlan, pje
Date 2013-10-29.10:02:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Patch mostly looks good to me, but there should be a second test ensuring that the loader attribute gets *replaced*, even if it is already set to something else.

A similar test structure to the existing one should work, but replacing the "del types.__loader__" with:

    expected_loader_type = type(types.__loader__)
    types.__loader__ = "this will be replaced by the reload"

and then later:

    assertIs(type(types.__loader__), expected_loader_type)
Date User Action Args
2013-10-29 10:02:10ncoghlansetrecipients: + ncoghlan, brett.cannon, pje, Arfrever, eric.snow
2013-10-29 10:02:10ncoghlansetmessageid: <>
2013-10-29 10:02:10ncoghlanlinkissue19413 messages
2013-10-29 10:02:09ncoghlancreate