Commit 03867188 authored by Guido van Rossum's avatar Guido van Rossum

Get rid of last use of _rpc_mgr[0][1] to get the server address in the

test suite.  The address is now found as the _addr attribute of the
client storage instance.
parent 0bb2eb3e
...@@ -185,7 +185,7 @@ class CommitLockTests: ...@@ -185,7 +185,7 @@ class CommitLockTests:
# The rpc mgr addr attribute is a list. Each element in the # The rpc mgr addr attribute is a list. Each element in the
# list is a socket domain (AF_INET, AF_UNIX, etc.) and an # list is a socket domain (AF_INET, AF_UNIX, etc.) and an
# address. # address.
addr = self._storage._rpc_mgr.addr[0][1] addr = self._storage._addr
new = ZEO.ClientStorage.ClientStorage(addr, wait=1) new = ZEO.ClientStorage.ClientStorage(addr, wait=1)
new.registerDB(DummyDB(), None) new.registerDB(DummyDB(), None)
return new return new
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment