[pypy-commit] pypy default: run functions in apptest_* files in definition order
cfbolz
pypy.commits at gmail.com
Wed Jan 8 07:48:20 EST 2020
Author: Carl Friedrich Bolz-Tereick <cfbolz at gmx.de>
Branch:
Changeset: r98491:d7bd679b8a6e
Date: 2020-01-08 13:24 +0100
http://bitbucket.org/pypy/pypy/changeset/d7bd679b8a6e/
Log: run functions in apptest_* files in definition order
diff --git a/pypy/tool/pytest/apptest2.py b/pypy/tool/pytest/apptest2.py
--- a/pypy/tool/pytest/apptest2.py
+++ b/pypy/tool/pytest/apptest2.py
@@ -46,6 +46,7 @@
if not isinstance(w_obj, pypy.interpreter.function.Function):
continue
items.append(AppTestFunction(name, self, w_obj))
+ items.sort(key=lambda item: item.reportinfo()[:2])
return items
def setup(self):
More information about the pypy-commit
mailing list