[Python-3000] changing regrtest to handle import errors
Neal Norwitz
nnorwitz at gmail.com
Tue Mar 18 22:23:33 CET 2008
[changing to: and subject: ]
On Tue, Mar 18, 2008 at 4:09 PM, Guido van Rossum <guido at python.org> wrote:
> On Tue, Mar 18, 2008 at 3:58 PM, neal.norwitz
> <python-3000-checkins at python.org> wrote:
> > Get this test to pass (UserList/UserDict no longer exist and caused a skip).
>
> I think the automatic skip on ImportError is harmful.
>
> We should add a helper function to test_support so that you can write
>
> foobar = test_support.import_optional('foobar')
>
> and it will skip the test if foobar cannot be imported; all other
> failing imports should cause the test to *fail*.
>
> Any takers? This should be an easy two-part task.
This would be a great starter project for a new developer.
http://bugs.python.org/issue2409
Let me know if you could use some help. Feel free to contact me on or off list.
n
More information about the Python-3000
mailing list