[py-svn] r38108 - py/trunk/py/misc/testing

hpk at codespeak.net hpk at codespeak.net
Wed Feb 7 20:28:30 CET 2007


Author: hpk
Date: Wed Feb  7 20:28:29 2007
New Revision: 38108

Modified:
   py/trunk/py/misc/testing/test_initpkg.py
Log:
skip this test if we have no .svn dir


Modified: py/trunk/py/misc/testing/test_initpkg.py
==============================================================================
--- py/trunk/py/misc/testing/test_initpkg.py	(original)
+++ py/trunk/py/misc/testing/test_initpkg.py	Wed Feb  7 20:28:29 2007
@@ -88,6 +88,8 @@
     s = py.__package__.getzipdata()
 
 def test_getrev():
+    if not py.path.local(py.__file__).dirpath('.svn').check():
+        py.test.skip("py package is not a svn checkout") 
     d = py.__package__.getrev()
     svnversion = py.path.local.sysfind('svnversion')
     if svnversion is None:



More information about the pytest-commit mailing list