Commit Graph

12 Commits

Author SHA1 Message Date
Raymond Hettinger 67a3e8336f Issue 10326: Fix regression to get test cases to pickle again. 2011-06-25 12:16:25 +02:00
Ezio Melotti 34b32d62f8 #11763: don't use difflib in TestCase.assertMultiLineEqual if the strings are too long. 2011-04-27 09:45:46 +03:00
Michael Foord 4c9e91a092 Issue #10242: backport of more fixes to unittest.TestCase.assertItemsEqual 2011-03-16 20:34:53 -04:00
Michael Foord e6e0e26780 Issue 10242. Switching unittest.TestCase.assertItemsEqual to use a collections.Counter under the hood.
This fixes bugs when comparing collections of items like sets that can be sorted without raising an exception but where sorting has no meaning.
2010-12-19 15:52:56 +00:00
Michael Foord a17f076f61 Issue 10611. SystemExit should not cause a unittest test run to exit. 2010-12-19 14:53:19 +00:00
Michael Foord 94f071c715 Fix error message for comparing single line strings in unittest.TestCase.assertEqual.
Issue 9174
2010-07-10 13:51:42 +00:00
Michael Foord db919f0188 Tests for issue 8302, skipped test in a setUpClass or a setUpModule are reported as skips rather than errors. 2010-06-05 20:59:00 +00:00
Michael Foord c1d7c5b7fa Tests for unittest.TestCase.maxDiff. 2010-06-05 20:33:43 +00:00
Michael Foord f2c25c5cb0 Fix unittest tests after previous commit. 2010-06-05 13:48:27 +00:00
Michael Foord e37d75fce2 Removed the new max_diff argument to assertSequenceEqual. All unittest.TestCase assert methods that use difflib to produce failure messages now truncate overly long messages. New class attribute unittest.TestCase.maxDiff to configure this if necessary. Issue 8351. 2010-06-05 12:10:52 +00:00
Michael Foord 0100702b9a Issue 8351. Suppress large diffs in unittest.TestCase.assertSequenceEqual. 2010-06-05 11:23:51 +00:00
Michael Foord 35b3792ed3 Turn unittest tests into a package 2010-03-25 23:56:33 +00:00