I'm using python and writing something that connects to a remote object using Pyro4 When running some unit tests (using pyunit) that repeatedly connects to a remote object with pyro, I found I couldn't run more than 9 tests or the tests would get stuck and just hang there.
I've now managed to fix this by using with Pyro4.Proxy(PYRONAME:name) as pyroObject: do something with object...
whereas before I was creating the object in the test set up: def setUp(self): self.pyroObject = Pyro4.Proxy(PYRONAME:name)
and then using self.pyroObject within the tests
Does anyone know why this has fixed the issue? Thanks