From d614e67fb1a6c11706a45868ed54e0344212b682 Mon Sep 17 00:00:00 2001 From: hpk Date: Wed, 7 Feb 2007 20:28:29 +0100 Subject: [PATCH] [svn r38108] skip this test if we have no .svn dir --HG-- branch : trunk --- py/misc/testing/test_initpkg.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/py/misc/testing/test_initpkg.py b/py/misc/testing/test_initpkg.py index 86cb91f1a..d68586634 100644 --- a/py/misc/testing/test_initpkg.py +++ b/py/misc/testing/test_initpkg.py @@ -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: