summaryrefslogtreecommitdiff
path: root/python/test/Ice/exceptions/AllTests.py
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2018-11-08 23:39:40 +0100
committerJose <jose@zeroc.com>2018-11-08 23:39:40 +0100
commit48539e835c16c35195dcbd33783c44a656e92c2a (patch)
treec8328b3e9a210b2f2d6916384b0d17e861932d05 /python/test/Ice/exceptions/AllTests.py
parentAdd support for build IceGridGUI with Open JavaFX 11 packages (diff)
downloadice-48539e835c16c35195dcbd33783c44a656e92c2a.tar.bz2
ice-48539e835c16c35195dcbd33783c44a656e92c2a.tar.xz
ice-48539e835c16c35195dcbd33783c44a656e92c2a.zip
Do not use "false" in python tests
Close #270
Diffstat (limited to 'python/test/Ice/exceptions/AllTests.py')
-rw-r--r--python/test/Ice/exceptions/AllTests.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/python/test/Ice/exceptions/AllTests.py b/python/test/Ice/exceptions/AllTests.py
index 163caee8ddf..a7b4b0df1ae 100644
--- a/python/test/Ice/exceptions/AllTests.py
+++ b/python/test/Ice/exceptions/AllTests.py
@@ -221,26 +221,26 @@ def allTests(helper, communicator):
adapter.add(obj, Ice.stringToIdentity("x"))
try:
adapter.add(obj, Ice.stringToIdentity("x"))
- test(false)
+ test(False)
except Ice.AlreadyRegisteredException:
pass
try:
adapter.add(obj, Ice.stringToIdentity(""))
- test(false)
+ test(False)
except Ice.IllegalIdentityException as ex:
test(ex.id.name == "")
try:
adapter.add(None, Ice.stringToIdentity("x"))
- test(false)
+ test(False)
except Ice.IllegalServantException:
pass
adapter.remove(Ice.stringToIdentity("x"))
try:
adapter.remove(Ice.stringToIdentity("x"))
- test(false)
+ test(False)
except Ice.NotRegisteredException:
pass
@@ -255,7 +255,7 @@ def allTests(helper, communicator):
adapter.addServantLocator(loc, "x")
try:
adapter.addServantLocator(loc, "x")
- test(false)
+ test(False)
except Ice.AlreadyRegisteredException:
pass
@@ -268,7 +268,7 @@ def allTests(helper, communicator):
communicator.getValueFactoryManager().add(ValueFactory, "x")
try:
communicator.getValueFactoryManager().add(ValueFactory, "x")
- test(false)
+ test(False)
except Ice.AlreadyRegisteredException:
pass
print("ok")