[pypy-commit] pypy default: Skip a couple of tests when no Mercurial repo present

Greg Price noreply at buildbot.pypy.org
Wed Mar 20 02:49:30 CET 2013


Author: Greg Price <price at mit.edu>
Branch: 
Changeset: r62537:9560ecb7c7e5
Date: 2013-03-19 17:57 -0700
http://bitbucket.org/pypy/pypy/changeset/9560ecb7c7e5/

Log:	Skip a couple of tests when no Mercurial repo present

diff --git a/pypy/doc/test/test_whatsnew.py b/pypy/doc/test/test_whatsnew.py
--- a/pypy/doc/test/test_whatsnew.py
+++ b/pypy/doc/test/test_whatsnew.py
@@ -1,6 +1,6 @@
 import py
 import pypy
-from commands import getoutput
+from commands import getoutput, getstatusoutput
 ROOT = py.path.local(pypy.__file__).dirpath().dirpath()
 
 
@@ -20,6 +20,9 @@
     return startrev, branches
 
 def get_merged_branches(path, startrev, endrev):
+    if getstatusoutput('hg root')[0]:
+        py.test.skip('no Mercurial repo')
+
     # X = take all the merges which are descendants of startrev and are on default
     # revset = all the parents of X which are not on default
     # ===>


More information about the pypy-commit mailing list