diff options
Diffstat (limited to 'python/test/Ice/exceptions/AllTests.py')
-rw-r--r-- | python/test/Ice/exceptions/AllTests.py | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/python/test/Ice/exceptions/AllTests.py b/python/test/Ice/exceptions/AllTests.py index 60fc7b26e47..97d68ecabb0 100644 --- a/python/test/Ice/exceptions/AllTests.py +++ b/python/test/Ice/exceptions/AllTests.py @@ -26,12 +26,8 @@ class ServantLocatorI(Ice.ServantLocator): def deactivate(self, category): pass -class ObjectFactoryI(Ice.ObjectFactory): - def create(id): - return None - - def destroy(): - pass +def ValueFactory(type): + return None class CallbackBase: def __init__(self): @@ -273,10 +269,10 @@ def allTests(communicator): sys.stdout.write("testing object factory registration exception... ") sys.stdout.flush() - of = ObjectFactoryI() - communicator.addObjectFactory(of, "x") + + communicator.getValueFactoryManager().add(ValueFactory, "x") try: - communicator.addObjectFactory(of, "x") + communicator.getValueFactoryManager().add(ValueFactory, "x") test(false) except Ice.AlreadyRegisteredException: pass |