summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/case.py
Commit message (Collapse)AuthorAgeFilesLines
* Typo correction.Michael Foord2010-06-091-1/+1
|
* Issue 8948. cleanup functions are not run by unittest.TestCase.debug(), plus ↵Michael Foord2010-06-081-0/+3
| | | | class and module teardowns are not run by unittest.TestSuite.debug().
* Code formatting change.Michael Foord2010-06-051-0/+1
|
* Fix unittest tests after previous commit.Michael Foord2010-06-051-1/+1
|
* unittest.TestCase assertion methods inform you when they have omitted an ↵Michael Foord2010-06-051-1/+5
| | | | over long diff on failure. Issue 8351.
* unittest.TestCase.assertDictEqual and assertMultilineEqual provide better ↵Michael Foord2010-06-051-2/+4
| | | | default failure messages in the event of long diffs.
* Removed the new max_diff argument to assertSequenceEqual. All ↵Michael Foord2010-06-051-9/+14
| | | | 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.
* Extract error message truncating into a method ↵Michael Foord2010-06-051-4/+6
| | | | (unittest.TestCase._truncateMessage).
* Issue 8351. Suppress large diffs in unittest.TestCase.assertSequenceEqual.Michael Foord2010-06-051-3/+10
|
* Updating documentation and adding docstrings to ↵Michael Foord2010-05-081-0/+2
| | | | unittest.TestCase.assertRegexpMatches and assertNotRegexpMatches. Issue 8038.
* Issue #8038: Addition of unittest.TestCase.assertNotRegexpMatchesMichael Foord2010-04-021-0/+12
|
* Addition of delta keyword argument to unittest.TestCase.assertAlmostEquals ↵Michael Foord2010-03-271-13/+45
| | | | | | and assertNotAlmostEquals This allows the comparison of objects by specifying a maximum difference; this includes the comparing of non-numeric objects that don't support rounding.
* Issue 7815. __unittest in module globals trims frames from reported ↵Michael Foord2010-03-221-0/+3
| | | | stacktraces in unittest.
* Silence more py3k warnings in unittest.case.Florent Xicluna2010-03-211-2/+2
|
* Issue 7832: renaming unittest.TestCase.assertSameElements to ↵Michael Foord2010-03-201-24/+30
| | | | assertItemsEqual and changing behaviour
* Remove accidental print statement from last commit.Michael Foord2010-03-071-1/+0
|
* Fix accidental name rebinding in unittest py3k warning filtering.Michael Foord2010-03-071-2/+3
|
* Addition of setUpClass and setUpModule shared fixtures to unittest.Michael Foord2010-03-071-0/+11
|
* Fix for potentials errors in constructing unittest failure messages. Plus ↵Michael Foord2010-03-071-13/+23
| | | | skipped test methods no longer run setUp and tearDown (Issue 8059)
* Fix some py3k warnings in the standard library.Florent Xicluna2010-03-071-20/+17
|
* Support for old TestResult object (unittest) with warnings when using ↵Michael Foord2010-02-221-5/+26
| | | | unsupported features.
* Fix unittest.TestCase.assertDictContainsSubset so it can't die with unicode ↵Michael Foord2010-02-181-3/+4
| | | | issues when constructing failure messages. Issue 7956
* unittest.TestCase uses safe_repr for producing failure messages. Partial fix ↵Michael Foord2010-02-181-34/+46
| | | | for issue 7956
* Remove deprecation on assert_. It is used too frequently.Michael Foord2010-02-101-1/+1
|
* Issue 7893 and Issue 7588Michael Foord2010-02-101-10/+7
|
* Make assertMultiLineEqual the default for comparing unicode strings.Michael Foord2010-02-081-0/+1
|
* Fix exc_value -> exception in docstringEzio Melotti2010-02-081-1/+1
|
* assertRaises as context manager now allows you to access exception as documentedMichael Foord2010-02-071-1/+1
|
* Rename "exc_value" attribute on assertRaises context manager to "exception".Georg Brandl2010-02-071-2/+2
|
* Use "regexp" consistently.Georg Brandl2010-02-071-8/+8
|
* Correction to docstring correction.Michael Foord2010-02-051-1/+1
|
* Improving docstrings in unittest.TestCaseMichael Foord2010-02-051-5/+15
|
* Fix typo in assertSequenceEqual docstring.R. David Murray2010-01-291-1/+1
|
* Issue #7092: Fix the DeprecationWarnings emitted by the standard libraryAntoine Pitrou2010-01-041-3/+9
| | | | when using the -3 flag. Patch by Florent Xicluna.
* now that deepcopy can handle instance methods, this hack can be removed #7409Benjamin Peterson2009-11-291-13/+2
| | | | Thanks Robert Collins
* #7031: Add TestCase.assertIsInstance and negated method.Georg Brandl2009-10-011-0/+13
|
* Fix some weird whitespace and two other overlong lines.Georg Brandl2009-10-011-4/+7
|
* Objects that compare equal automatically pass or fail assertAlmostEqual and ↵Michael Foord2009-09-131-1/+9
| | | | assertNotAlmostEqual tests on unittest.TestCase. Issue 6567.
* issue 6275Kristján Valur Jónsson2009-08-271-0/+1
| | | | Add an "exc_value" attribute to the _AssertRaisesContext context manager in the unittest package. This allows further tests on the exception that was raised after the context manager exits.
* split unittest.py into a packageBenjamin Peterson2009-07-191-0/+893