[py-svn] r62119 - py/branch/pytestplugin/py/execnet/testing

hpk at codespeak.net hpk at codespeak.net
Tue Feb 24 17:49:48 CET 2009


Author: hpk
Date: Tue Feb 24 17:49:47 2009
New Revision: 62119

Modified:
   py/branch/pytestplugin/py/execnet/testing/test_gateway.py
Log:
fix a test function that already had args - although py.test could also learn more about default values of functions. 


Modified: py/branch/pytestplugin/py/execnet/testing/test_gateway.py
==============================================================================
--- py/branch/pytestplugin/py/execnet/testing/test_gateway.py	(original)
+++ py/branch/pytestplugin/py/execnet/testing/test_gateway.py	Tue Feb 24 17:49:47 2009
@@ -247,7 +247,10 @@
         channel.waitclose(TESTTIMEOUT) 
         assert l == [42]
 
-    def test_channel_callback_stays_active(self, earlyfree=True):
+    def test_channel_callback_stays_active(self):
+        self.check_channel_callback_stays_active(earlyfree=True)
+
+    def check_channel_callback_stays_active(self, earlyfree=True):
         # with 'earlyfree==True', this tests the "sendonly" channel state.
         l = []
         channel = self.gw.remote_exec(source='''
@@ -278,7 +281,7 @@
         return subchannel
 
     def test_channel_callback_remote_freed(self):
-        channel = self.test_channel_callback_stays_active(False)
+        channel = self.check_channel_callback_stays_active(earlyfree=False)
         channel.waitclose(TESTTIMEOUT) # freed automatically at the end of producer()
 
     def test_channel_endmarker_callback(self):



More information about the pytest-commit mailing list