[issue8446] buildbot: DeprecationWarning not raised for icglue (test_py3kwarn.TestStdlibRemovals)

Ronald Oussoren report at bugs.python.org
Mon May 24 08:33:50 CEST 2010


Ronald Oussoren <ronaldoussoren at mac.com> added the comment:

The patch somewhat works, in that it makes test_py3kwarn pass but I'd add more filterwarning calls:

        filterwarnings("ignore", ".*the icglue module is removed",
            DeprecationWarning)
        filterwarnings("ignore", ".*the MacOS module is removed",
            DeprecationWarning)
        filterwarnings("ignore", ".*the macostools module is removed",
            DeprecationWarning)

This ensures that importing webbrowser won't trigger py3k warnings.
 
It is probably safe to remove the import of 'ic' and related code the block with guard "if sys.platform == 'darwin'" just below that overrides the IC based browser detection by one that doesn't use IC (that one is added to the front of the search list, which means the IC one never gets used).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8446>
_______________________________________


More information about the Python-bugs-list mailing list