--- a/tests/run-tests.py Sun Apr 20 11:47:40 2014 -0700
+++ b/tests/run-tests.py Sun Apr 20 11:48:19 2014 -0700
@@ -989,6 +989,20 @@
def __init__(self, *args, **kwargs):
super(TestResult, self).__init__(*args, **kwargs)
+ # unittest.TestResult didn't have skipped until 2.7. We need to
+ # polyfill it.
+ self.skipped = []
+
+ # Polyfill.
+ def addSkip(self, test, reason):
+ self.skipped.append((test, reason))
+
+ if self.showAll:
+ self.stream.writeln('skipped %s' % reason)
+ else:
+ self.stream.write('s')
+ self.stream.flush()
+
class TextTestRunner(unittest.TextTestRunner):
"""Custom unittest test runner that uses appropriate settings."""
@@ -1289,7 +1303,7 @@
elif code == '.':
pass
elif code == 's':
- pass
+ self._result.addSkip(self, msg)
elif code == 'i':
pass
else: