Ticket #3111 enhancement closed fixed
skip unit tests if they depend on absent 3rd-party library
| Reported by: | zooko | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | core | Keywords: | test |
| Cc: | Branch: |
branches/without-openssl-3111
(diff, github, buildbot, log) |
|
| Author: | exarkun | Launchpad Bug: |
Description
If you run twisted unit tests without installing pyOpenSSL and pyCrypto, then you get errors like these:
===============================================================================
[ERROR]: twisted.conch.test.test_userauth
Traceback (most recent call last):
File "/Users/wonwinmcbrootles/playground/twisted/easy_install-1286-4/twisted/trial/runner.py", line 546, in loadPackage
module = modinfo.load()
File "/Users/wonwinmcbrootles/playground/twisted/easy_install-1286-4/twisted/python/modules.py", line 380, in load
return self.pathEntry.pythonPath.moduleLoader(self.name)
File "/Users/wonwinmcbrootles/playground/twisted/easy_install-1286-4/twisted/python/modules.py", line 618, in moduleLoader
return self._moduleLoader(modname)
File "/Users/wonwinmcbrootles/playground/twisted/easy_install-1286-4/twisted/python/reflect.py", line 426, in namedAny
topLevelPackage = _importAndCheckStack(trialname)
File "/Users/wonwinmcbrootles/playground/twisted/easy_install-1286-4/twisted/conch/test/test_userauth.py", line 8, in <module>
from twisted.conch.ssh import userauth
File "/Users/wonwinmcbrootles/playground/twisted/easy_install-1286-4/twisted/conch/ssh/userauth.py", line 19, in <module>
import keys, transport, service
File "/Users/wonwinmcbrootles/playground/twisted/easy_install-1286-4/twisted/conch/ssh/keys.py", line 19, in <module>
from Crypto.Cipher import DES3
exceptions.ImportError: No module named Crypto.Cipher
It would be nicer if you got SkipTests for those.
Change History
Note: See
TracTickets for help on using
tickets.
