fix a test-import issue occuring when there is a second 'testing' directory in PYTHONPATH or so.

--HG--
branch : trunk
This commit is contained in:
holger krekel 2009-10-28 21:33:26 +01:00
parent 69dd2d7a78
commit 58e1693af0
1 changed files with 5 additions and 0 deletions

View File

@ -120,6 +120,11 @@ class TestPickleChannelFunctional:
def setup_class(cls):
cls.gw = execnet.PopenGateway()
cls.gw.remote_init_threads(5)
# we need the remote test code to import
# the same test module here
cls.gw.remote_exec(
"import py ; py.path.local(%r).pyimport()" %(__file__)
)
def test_popen_send_instance(self):
channel = self.gw.remote_exec("""