mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
Guard TwistedCommandsTestCase against not having twisted.
This commit is contained in:
parent
c0eb527117
commit
8fa457ec3a
@ -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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user