[pypy-commit] pypy better-test-whatsnew: improve this test and make sure that the CURRENT branch is documented: this way we get a failure early before merging the branch instead of having test_whatsnew failing on default the day after

antocuni pypy.commits at gmail.com
Tue May 23 08:43:23 EDT 2017


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: better-test-whatsnew
Changeset: r91388:ae2ab7014840
Date: 2017-05-23 14:39 +0200
http://bitbucket.org/pypy/pypy/changeset/ae2ab7014840/

Log:	improve this test and make sure that the CURRENT branch is
	documented: this way we get a failure early before merging the
	branch instead of having test_whatsnew failing on default the day
	after

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
@@ -101,6 +101,8 @@
     assert not not_documented
     if branch == 'default':
         assert not not_merged
+    else:
+        assert branch in documented, 'Please document this branch before merging: %s' % branch
 
 def test_startrev_on_default():
     doc = ROOT.join('pypy', 'doc')


More information about the pypy-commit mailing list