[pypy-commit] pypy default: Baaaah. It picked "whatsnew-head.rst" by choosing the last

arigo noreply at buildbot.pypy.org
Mon Jan 19 12:16:56 CET 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r75436:41b93b18408c
Date: 2015-01-19 12:16 +0100
http://bitbucket.org/pypy/pypy/changeset/41b93b18408c/

Log:	Baaaah. It picked "whatsnew-head.rst" by choosing the last
	"whatsnew-*.rst" in alphabetical order. But nowadays we have
	"whatsnew-pypy3-*" too...

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
@@ -78,9 +78,10 @@
 
 def test_whatsnew():
     doc = ROOT.join('pypy', 'doc')
-    whatsnew_list = doc.listdir('whatsnew-*.rst')
-    whatsnew_list.sort()
-    last_whatsnew = whatsnew_list[-1].read()
+    #whatsnew_list = doc.listdir('whatsnew-*.rst')
+    #whatsnew_list.sort()
+    #last_whatsnew = whatsnew_list[-1].read()
+    last_whatsnew = doc.join('whatsnew-head.rst').read()
     startrev, documented = parse_doc(last_whatsnew)
     merged, branch = get_merged_branches(ROOT, startrev, '')
     merged.discard('default')


More information about the pypy-commit mailing list