diff options
Diffstat (limited to 'python/test/Ice/exceptions/AllTests.py')
-rw-r--r-- | python/test/Ice/exceptions/AllTests.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/python/test/Ice/exceptions/AllTests.py b/python/test/Ice/exceptions/AllTests.py index 4522a0de731..4df5e5d4dd3 100644 --- a/python/test/Ice/exceptions/AllTests.py +++ b/python/test/Ice/exceptions/AllTests.py @@ -26,13 +26,10 @@ class ServantLocatorI(Ice.ServantLocator): def deactivate(self, category): pass -class ObjectFactoryI(Ice.ObjectFactory): +class ValueFactoryI(Ice.ValueFactory): def create(id): return None - def destroy(): - pass - class CallbackBase: def __init__(self): self._called = False @@ -273,10 +270,10 @@ def allTests(communicator): sys.stdout.write("testing object factory registration exception... ") sys.stdout.flush() - of = ObjectFactoryI() - communicator.addObjectFactory(of, "x") + vf = ValueFactoryI() + communicator.addValueFactory(vf, "x") try: - communicator.addObjectFactory(of, "x") + communicator.addValueFactory(vf, "x") test(false) except Ice.AlreadyRegisteredException: pass |