[issue10966] eliminate use of ImportError implicitly representing SkipTest

Brett Cannon report at bugs.python.org
Thu Mar 24 23:16:05 CET 2011


Brett Cannon <brett at python.org> added the comment:

I can change it to 'required' and 'optional'.

As for Antoine's comment, do you have another suggestion? I realize it isn't necessarily easier per se to manage these lists than the 'expected' list, but what would you rather have happen? Simply say tests are skipped because they were not imported and assume people pay enough attention to realize that some compilation error occurred for the modules? That doesn't seem like a much better solution; Nick once didn't realize that there was a compilation issue for an extension as the test was simply skipped to begin with. And when ctypes wouldn't compile under LLVM that was not exactly a test being skipped but a failure (albeit on LLVM's side in that case).

----------

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


More information about the Python-bugs-list mailing list