mirror of
https://github.com/python/cpython.git
synced 2025-08-09 19:38:42 +00:00
Tests for issue 8302, skipped test in a setUpClass or a setUpModule are reported as skips rather than errors.
This commit is contained in:
parent
c1d7c5b7fa
commit
db919f0188
3 changed files with 47 additions and 4 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue