Steve Dower <[email protected]> added the comment:
Or better yet (since my last suggestion was bad), add a second test class to
test_crypt
try:
import crypt
IMPORT_ERROR = None
except ImportError as ex:
crypt = None
IMPORT_ERROR = str(ex)
@skipIf(crypt)
class TestWhyCryptDidNotImport(TestCase):
...
@skipUnless(crypt)
class CryptTestCase(TestCase):
...
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue25172>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com