[py-svn] r63056 - in py/trunk/py: . test

hpk at codespeak.net hpk at codespeak.net
Wed Mar 18 22:24:44 CET 2009


Author: hpk
Date: Wed Mar 18 22:24:42 2009
New Revision: 63056

Modified:
   py/trunk/py/conftest.py
   py/trunk/py/test/config.py
Log:
try to ignore build directory (which shouldn't be there at all) for rsyncing


Modified: py/trunk/py/conftest.py
==============================================================================
--- py/trunk/py/conftest.py	(original)
+++ py/trunk/py/conftest.py	Wed Mar 18 22:24:42 2009
@@ -2,6 +2,8 @@
 
 pytest_plugins = 'pytest_doctest', 'pytest_pytester', 'pytest_restdoc'
 
+rsyncignore = ['c-extension/greenlet/build']
+
 import py
 class PylibTestPlugin:
     def pytest_addoption(self, parser):

Modified: py/trunk/py/test/config.py
==============================================================================
--- py/trunk/py/test/config.py	(original)
+++ py/trunk/py/test/config.py	Wed Mar 18 22:24:42 2009
@@ -168,7 +168,11 @@
         except KeyError:
             return None
         modpath = py.path.local(mod.__file__).dirpath()
-        return [modpath.join(x, abs=True) for x in relroots]
+        l = []
+        for relroot in relroots:
+            relroot = relroot.replace("/", py.path.local.sep)
+            l.append(modpath.join(relroot, abs=True))
+        return l 
              
     def addoptions(self, groupname, *specs): 
         """ add a named group of options to the current testing session. 



More information about the pytest-commit mailing list