[Python-modules-commits] r23830 - in packages/scipy/trunk/debian (3 files)
jtaylor-guest at users.alioth.debian.org
jtaylor-guest at users.alioth.debian.org
Wed Apr 3 19:11:06 UTC 2013
Date: Wednesday, April 3, 2013 @ 19:11:05
Author: jtaylor-guest
Revision: 23830
print skipped tests and unused skips in autopkgtest scripts
Modified:
packages/scipy/trunk/debian/changelog
packages/scipy/trunk/debian/tests/python2
packages/scipy/trunk/debian/tests/python3
Modified: packages/scipy/trunk/debian/changelog
===================================================================
--- packages/scipy/trunk/debian/changelog 2013-04-03 12:33:14 UTC (rev 23829)
+++ packages/scipy/trunk/debian/changelog 2013-04-03 19:11:05 UTC (rev 23830)
@@ -2,6 +2,7 @@
* also fail on test failures not only test errors
* skip failing test_mio on big endian python3 >= 3.2
+ * print skipped tests and unused skips in autopkgtest scripts
-- Julian Taylor <jtaylor.debian at googlemail.com> Sun, 03 Mar 2013 18:53:39 +0100
Modified: packages/scipy/trunk/debian/tests/python2
===================================================================
--- packages/scipy/trunk/debian/tests/python2 2013-04-03 12:33:14 UTC (rev 23829)
+++ packages/scipy/trunk/debian/tests/python2 2013-04-03 19:11:05 UTC (rev 23830)
@@ -16,10 +16,16 @@
r = $TESTPKG.test(label='$TESTMODE', verbose=2);
errors = []
for e in (r.errors + r.failures):
- if not any(re.search(s, e[0].id()) for s in skip):
- print e[0].id()
+ eid = e[0].id()
+ if not any(re.search(s, eid) for s in skip):
+ print "failed:", eid
errors.append(e)
+ del skip[skip.index(eid)]
+ else:
+ print "skipped:", eid
print "#errors: %d" % len(errors)
+for s in skip:
+ print "unused skips:", s
assert len(errors) == 0
EOF
Modified: packages/scipy/trunk/debian/tests/python3
===================================================================
--- packages/scipy/trunk/debian/tests/python3 2013-04-03 12:33:14 UTC (rev 23829)
+++ packages/scipy/trunk/debian/tests/python3 2013-04-03 19:11:05 UTC (rev 23830)
@@ -21,10 +21,16 @@
r = $TESTPKG.test(label='$TESTMODE', verbose=2, extra_argv=extra);
errors = []
for e in (r.errors + r.failures):
- if not any(re.search(s, e[0].id()) for s in skip):
- print(e[0].id())
+ eid = e[0].id()
+ if not any(re.search(s, eid) for s in skip):
+ print("failed:", eid)
errors.append(e)
+ del skip[skip.index(eid)]
+ else:
+ print("skipped:", eid)
print("#errors: %d" % len(errors))
+for s in skip:
+ print("unused skips:", s)
assert len(errors) == 0
EOF
More information about the Python-modules-commits
mailing list