[svn r38108] skip this test if we have no .svn dir

--HG--
branch : trunk
This commit is contained in:
hpk 2007-02-07 20:28:29 +01:00
parent 1d6a72d936
commit d614e67fb1
1 changed files with 2 additions and 0 deletions

View File

@ -88,6 +88,8 @@ def test_getzipdata():
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: