[py-svn] r37919 - py/trunk/py/test/rsession/testing

hpk at codespeak.net hpk at codespeak.net
Sun Feb 4 16:42:56 CET 2007


Author: hpk
Date: Sun Feb  4 16:42:55 2007
New Revision: 37919

Modified:
   py/trunk/py/test/rsession/testing/test_master.py
Log:
use a less ambigous test package name


Modified: py/trunk/py/test/rsession/testing/test_master.py
==============================================================================
--- py/trunk/py/test/rsession/testing/test_master.py	(original)
+++ py/trunk/py/test/rsession/testing/test_master.py	Sun Feb  4 16:42:55 2007
@@ -96,7 +96,7 @@
 class TestSlave:
     def setup_class(cls):
         cls.tmpdir = tmpdir = py.test.ensuretemp(cls.__name__)
-        pkgpath = tmpdir.join("pkg")
+        cls.pkgpath = pkgpath = tmpdir.join("slavetestpkg")
         pkgpath.ensure("__init__.py")
         pkgpath.join("test_something.py").write(py.code.Source("""
             def funcpass(): 
@@ -114,10 +114,11 @@
         return self.config.get_collector_trail(item) 
         
     def test_slave_setup(self):
+        pkgname = self.pkgpath.basename
         host = HostInfo("localhost:%s" %(self.tmpdir,))
         host.initgateway()
         channel = setup_slave(host, self.config)
-        spec = self._gettrail("pkg", "test_something.py", "funcpass")
+        spec = self._gettrail(pkgname, "test_something.py", "funcpass")
         print "sending", spec
         channel.send(spec)
         output = ReprOutcome(channel.receive())



More information about the pytest-commit mailing list