[py-svn] r10855 - py/dist/py/execnet/testing
hpk at codespeak.net
hpk at codespeak.net
Tue Apr 19 14:39:56 CEST 2005
Author: hpk
Date: Tue Apr 19 14:39:55 2005
New Revision: 10855
Modified:
py/dist/py/execnet/testing/test_gateway.py
Log:
add a test that makes sure that 'py' is not
imported on the other side too early
Modified: py/dist/py/execnet/testing/test_gateway.py
==============================================================================
--- py/dist/py/execnet/testing/test_gateway.py (original)
+++ py/dist/py/execnet/testing/test_gateway.py Tue Apr 19 14:39:55 2005
@@ -80,6 +80,15 @@
for x in 'sender', 'receiver':
assert self.gw.pool.getstarted(x)
+ def test_correct_setup_no_py(self):
+ channel = self.gw.remote_exec("""
+ import sys
+ channel.send(sys.modules.keys())
+ """)
+ remotemodules = channel.receive()
+ assert 'py' not in remotemodules, (
+ "py should not be imported on remote side")
+
def test_remote_exec_waitclose(self):
channel = self.gw.remote_exec('pass')
channel.waitclose(timeout=1.0)
More information about the pytest-commit
mailing list