Tests for issue 8302, skipped test in a setUpClass or a setUpModule are reported as skips rather than errors.

This commit is contained in:
Michael Foord 2010-06-05 20:59:00 +00:00
parent c1d7c5b7fa
commit db919f0188
3 changed files with 47 additions and 4 deletions

View file

@ -639,6 +639,10 @@ class Test_TestCase(unittest.TestCase, TestEquality, TestHashing):
message = self._truncateMessage('foo', 'bar')
self.assertEqual(message, 'foobar')
self.maxDiff = 4
message = self._truncateMessage('foo', 'bar')
self.assertEqual(message, 'foobar')
def testAssertDictEqualTruncates(self):
test = unittest.TestCase('assertEqual')
def truncate(msg, diff):