59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 | |
def test_remote_has_homedir_as_currentdir(self): |
host = self._gethostinfo() |
old = py.path.local.get_temproot().chdir() |
try: |
host.initgateway() |
channel = host.gw.remote_exec(py.code.Source( |
gethomedir, """ |
import os |
homedir = gethomedir() |
curdir = os.getcwd() |
channel.send((curdir, homedir)) |
""")) |
remote_curdir, remote_homedir = channel.receive() |
assert remote_curdir == remote_homedir |
finally: |
-> old.chdir() | |