Guard TwistedCommandsTestCase against not having twisted.

This commit is contained in:
Jeremy Fincher 2003-09-06 07:52:18 +00:00
parent c0eb527117
commit 8fa457ec3a

View File

@ -31,13 +31,14 @@
from test import *
import twistedDrivers
class TwistedCommandsTestCase(PluginTestCase):
plugins = ('TwistedCommands',)
def testDict(self):
self.assertNotError('dict strike')
try:
import twistedDrivers
class TwistedCommandsTestCase(PluginTestCase):
plugins = ('TwistedCommands',)
def testDict(self):
self.assertNotError('dict strike')
except ImportError:
pass
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: