[Python-modules-commits] r24309 - in packages/scipy/trunk/debian/tests (python2 python3)
jtaylor-guest at users.alioth.debian.org
jtaylor-guest at users.alioth.debian.org
Sat May 11 19:25:05 UTC 2013
Date: Saturday, May 11, 2013 @ 19:25:03
Author: jtaylor-guest
Revision: 24309
fix a logic error if the autopkgtests fail
Modified:
packages/scipy/trunk/debian/tests/python2
packages/scipy/trunk/debian/tests/python3
Modified: packages/scipy/trunk/debian/tests/python2
===================================================================
--- packages/scipy/trunk/debian/tests/python2 2013-05-11 19:24:57 UTC (rev 24308)
+++ packages/scipy/trunk/debian/tests/python2 2013-05-11 19:25:03 UTC (rev 24309)
@@ -17,12 +17,14 @@
errors = []
for e in (r.errors + r.failures):
eid = e[0].id()
- if not any(re.search(s, eid) for s in skip):
+ test = [re.search(s, eid) is not None for s in skip]
+ if not any(test):
print "failed:", eid
errors.append(e)
- del skip[skip.index(eid)]
else:
print "skipped:", eid
+ if True in test:
+ del skip[test.index(True)]
print "#errors: %d" % len(errors)
for s in skip:
print "unused skips:", s
Modified: packages/scipy/trunk/debian/tests/python3
===================================================================
--- packages/scipy/trunk/debian/tests/python3 2013-05-11 19:24:57 UTC (rev 24308)
+++ packages/scipy/trunk/debian/tests/python3 2013-05-11 19:25:03 UTC (rev 24309)
@@ -22,12 +22,14 @@
errors = []
for e in (r.errors + r.failures):
eid = e[0].id()
- if not any(re.search(s, eid) for s in skip):
+ test = [re.search(s, eid) is not None for s in skip]
+ if not any(test):
print("failed:", eid)
errors.append(e)
- del skip[skip.index(eid)]
else:
print("skipped:", eid)
+ if True in test:
+ del skip[test.index(True)]
print("#errors: %d" % len(errors))
for s in skip:
print("unused skips:", s)
More information about the Python-modules-commits
mailing list