summaryrefslogtreecommitdiff
path: root/py/demo/Ice/value/Client.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/demo/Ice/value/Client.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/demo/Ice/value/Client.py')
-rw-r--r--py/demo/Ice/value/Client.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/py/demo/Ice/value/Client.py b/py/demo/Ice/value/Client.py
index f2c8781a95a..0bf0c6fc474 100644
--- a/py/demo/Ice/value/Client.py
+++ b/py/demo/Ice/value/Client.py
@@ -69,13 +69,12 @@ def run(args, communicator):
"[press enter]"
raw_input()
- gotException = False
try:
printer, printerProxy = initial.getPrinter()
+ print args[0] + "Did not get the expected NoObjectFactoryException!"
+ sys.exit(false)
except Ice.NoObjectFactoryException, ex:
print "==>", ex
- gotException = True
- assert(gotException)
print '\n'\
"Yep, that's what we expected. Now let's try again, but with\n"\
@@ -149,14 +148,13 @@ def run(args, communicator):
"[press enter]"
raw_input()
- gotException = False
try:
initial.throwDerivedPrinter()
+ print args[0] + "Did not get the expected DerivedPrinterException!"
+ sys.exit(false)
except Demo.DerivedPrinterException, ex:
derived = ex.derived
assert(derived)
- gotException = True
- assert(gotException)
print "==> " + derived.derivedMessage
print "==>",