summaryrefslogtreecommitdiff
path: root/py/test/Ice/exceptions/AllTests.py
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2005-05-19 01:47:35 +0000
committerMichi Henning <michi@zeroc.com>2005-05-19 01:47:35 +0000
commitc672443296deee643ff325b23738f413b557488d (patch)
tree69649b23f0ce78188b4d250a095161ebbcfc8973 /py/test/Ice/exceptions/AllTests.py
parentFixed http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=324. (diff)
downloadice-c672443296deee643ff325b23738f413b557488d.tar.bz2
ice-c672443296deee643ff325b23738f413b557488d.tar.xz
ice-c672443296deee643ff325b23738f413b557488d.zip
Fixed http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=324
Diffstat (limited to 'py/test/Ice/exceptions/AllTests.py')
-rw-r--r--py/test/Ice/exceptions/AllTests.py25
1 files changed, 10 insertions, 15 deletions
diff --git a/py/test/Ice/exceptions/AllTests.py b/py/test/Ice/exceptions/AllTests.py
index 6f37825531b..d679e949976 100644
--- a/py/test/Ice/exceptions/AllTests.py
+++ b/py/test/Ice/exceptions/AllTests.py
@@ -291,20 +291,18 @@ def allTests(communicator):
adapter = communicator.createObjectAdapter("TestAdapter1")
obj = EmptyI()
adapter.add(obj, Ice.stringToIdentity("x"))
- gotException = False
try:
adapter.add(obj, Ice.stringToIdentity("x"))
+ test(false)
except Ice.AlreadyRegisteredException:
- gotException = True
- test(gotException)
+ pass
- gotException = False
adapter.remove(Ice.stringToIdentity("x"))
try:
adapter.remove(Ice.stringToIdentity("x"))
+ test(false)
except Ice.NotRegisteredException:
- gotException = True
- test(gotException)
+ pass
adapter.deactivate()
print "ok"
@@ -313,12 +311,11 @@ def allTests(communicator):
adapter = communicator.createObjectAdapter("TestAdapter2")
loc = ServantLocatorI()
adapter.addServantLocator(loc, "x")
- gotException = False
try:
adapter.addServantLocator(loc, "x")
+ test(false)
except Ice.AlreadyRegisteredException:
- gotException = True
- test(gotException)
+ pass
adapter.deactivate()
print "ok"
@@ -326,20 +323,18 @@ def allTests(communicator):
print "testing object factory registration exceptions... ",
of = ObjectFactoryI()
communicator.addObjectFactory(of, "x")
- gotException = False
try:
communicator.addObjectFactory(of, "x")
+ test(false)
except Ice.AlreadyRegisteredException:
- gotException = True
- test(gotException)
+ pass
- gotException = False
communicator.removeObjectFactory("x")
try:
communicator.removeObjectFactory("x")
+ test(false)
except Ice.NotRegisteredException:
- gotException = True
- test(gotException)
+ pass
print "ok"
print "testing stringToProxy... ",