Michael Foord
53e8eeadd6
Fix for potentials errors in constructing unittest failure messages. Plus skipped test methods no longer run setUp and tearDown (Issue 8059)
2010-03-07 20:22:12 +00:00
Florent Xicluna
1f3b4e12e8
Fix some py3k warnings in the standard library.
2010-03-07 12:14:25 +00:00
Michael Foord
ae3db0a12b
Support for old TestResult object (unittest) with warnings when using unsupported features.
2010-02-22 23:28:32 +00:00
Michael Foord
c2294dd6ba
Fix unittest.TestCase.assertDictContainsSubset so it can't die with unicode issues when constructing failure messages. Issue 7956
2010-02-18 21:37:07 +00:00
Michael Foord
225a099fe5
unittest.TestCase uses safe_repr for producing failure messages. Partial fix for issue 7956
2010-02-18 20:30:09 +00:00
Michael Foord
67dfc77dfd
Remove deprecation on assert_. It is used too frequently.
2010-02-10 14:31:30 +00:00
Michael Foord
db43b5a1f5
Issue 7893 and Issue 7588
2010-02-10 14:25:12 +00:00
Michael Foord
fe6349c965
Make assertMultiLineEqual the default for comparing unicode strings.
2010-02-08 22:41:16 +00:00
Ezio Melotti
cd4f657809
Fix exc_value -> exception in docstring
2010-02-08 21:52:08 +00:00
Michael Foord
2bd52dcccb
assertRaises as context manager now allows you to access exception as documented
2010-02-07 18:44:12 +00:00
Georg Brandl
dc3694bee0
Rename "exc_value" attribute on assertRaises context manager to "exception".
2010-02-07 17:02:22 +00:00
Georg Brandl
b0eb4d3eb1
Use "regexp" consistently.
2010-02-07 11:34:15 +00:00
Michael Foord
757cc4d15f
Correction to docstring correction.
2010-02-05 23:22:37 +00:00
Michael Foord
d0edec38ce
Improving docstrings in unittest.TestCase
2010-02-05 22:55:09 +00:00
R. David Murray
05b4171624
Fix typo in assertSequenceEqual docstring.
2010-01-29 19:35:39 +00:00
Antoine Pitrou
b9d4963a98
Issue #7092 : Fix the DeprecationWarnings emitted by the standard library
...
when using the -3 flag. Patch by Florent Xicluna.
2010-01-04 23:22:44 +00:00
Benjamin Peterson
d46430bd81
now that deepcopy can handle instance methods, this hack can be removed #7409
...
Thanks Robert Collins
2009-11-29 22:26:26 +00:00
Georg Brandl
f895cf5d33
#7031 : Add TestCase.assertIsInstance and negated method.
2009-10-01 20:59:31 +00:00
Georg Brandl
46cc46af07
Fix some weird whitespace and two other overlong lines.
2009-10-01 20:11:14 +00:00
Michael Foord
c3f79373e8
Objects that compare equal automatically pass or fail assertAlmostEqual and assertNotAlmostEqual tests on unittest.TestCase. Issue 6567.
2009-09-13 16:40:02 +00:00
Kristján Valur Jónsson
e2a77980b6
issue 6275
...
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.
2009-08-27 22:20:21 +00:00
Benjamin Peterson
d7b0eebcae
split unittest.py into a package
2009-07-19 20:18:21 +00:00