Nick Coghlan <[email protected]> added the comment:
The None->tuple check is a legacy of the original API where "None"
actually meant to block "_name". I'll change it as you suggest.
Your explanation as to why the test was failing in py3k makes sense. I
think I will tidy that use case up a bit by adding a "fresh=()" argument
to the function to go along with the "blocked=()" argument. Then the two
warnings imports would be:
py_warnings = support.import_fresh_module('warnings',
blocked=['_warnings']
c_warnings = support.import_fresh_module('warnings', fresh=['_warnings']
On the last topic, implementations that don't have an accelerated
version of a module can use the new features for marking implementation
specific tests to skip over those ones.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue5354>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com