Skip to content

Commit

Permalink
make import soft
Browse files Browse the repository at this point in the history
  • Loading branch information
pbauer committed Nov 9, 2017
1 parent 924c5b0 commit ce623c3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/ZEO/tests/test_marshal.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
import unittest
from ZEO.asyncio.marshal import encode
from ZEO.asyncio.marshal import pickle_server_decode
from ZopeUndo.Prefix import Prefix

try:
from ZopeUndo.Prefix import Prefix
except ImportError:
_HAVE_ZOPE_UNDO = False
else:
_HAVE_ZOPE_UNDO = True


class MarshalTests(unittest.TestCase):

@unittest.skipUnless(_HAVE_ZOPE_UNDO)
def testServerDecodeZopeUndoFilter(self):
# this is an example (1) of Zope2's arguments for
# undoInfo call. Arguments are encoded by ZEO client
Expand All @@ -25,4 +32,3 @@ def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(MarshalTests))
return suite

0 comments on commit ce623c3

Please sign in to comment.