Author: Antonio Cuni <[email protected]>
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')
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to