Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion zookeeper-contrib/zookeeper-contrib-monitoring/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class HandlerTestCase(unittest.TestCase):
def setUp(self):
try:
sys._stdout
except:
except Exception:
sys._stdout = sys.stdout

sys.stdout = StringIO()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def my_getc_watch( handle, type, state, path ):
zookeeper.get_children(handle, "/zk-python", my_getc_watch)
for i in xrange(5):
print("Creating sequence node ", i, " ", zookeeper.create(handle, "/zk-python/sequencenode", "data", [ZOO_OPEN_ACL_UNSAFE], zookeeper.SEQUENCE ))
except:
except Exception:
pass

def pp_zk(handle,root, indent = 0):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def setUp(self):
try:
zookeeper.delete(self.handle, "/zk-python-acltest")
zookeeper.delete(self.handle, "/zk-python-aacltest")
except:
except Exception:
pass

def test_sync_acl(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def setUp(self):
try:
zookeeper.delete(self.handle, "/zk-python-createtest")
zookeeper.delete(self.handle, "/zk-python-acreatetest")
except:
except Exception:
pass

def test_sync_create(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def setUp( self ):
try:
zookeeper.create(self.handle, "/zk-python-existstest","existstest", [ZOO_OPEN_ACL_UNSAFE],zookeeper.EPHEMERAL)
zookeeper.create(self.handle, "/zk-python-aexiststest","existstest",[ZOO_OPEN_ACL_UNSAFE],zookeeper.EPHEMERAL)
except:
except Exception:
pass

def test_sync_exists(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def setUp( self ):
zookeeper.create(self.handle, "/zk-python-getsettest", "on",[ZOO_OPEN_ACL_UNSAFE], zookeeper.EPHEMERAL)
zookeeper.create(self.handle, "/zk-python-agetsettest",
"on",[ZOO_OPEN_ACL_UNSAFE], zookeeper.EPHEMERAL)
except:
except Exception:
pass

def test_empty_node(self):
Expand Down