[issue28276] test_loading.py - false positive result for "def test_find" when find_library() is not functional or the (shared) library does not exist

Martin Panter report at bugs.python.org
Fri Sep 30 23:57:15 EDT 2016


Martin Panter added the comment:

Other tests in this file skip the test if libc_name is None. So I think it would make more sense to skip the test rather than fail in test_find(). I.e.

if not found:
    self.skipTest("Could not find c and m libraries")

If you are confident that find_library() will always find libc on AIX, perhaps you can suggest an extra test (or add to an existing test), to first check for the AIX platform, and only then fail if find_library() returned None.

----------

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


More information about the Python-bugs-list mailing list