Commit Graph

134 Commits

Author SHA1 Message Date
Martin Panter
a850ef698e Issue #27626: Spelling fixes in docs, comments and internal names
Based on patch by Ville Skyttä.
2016-07-28 01:11:04 +00:00
Martin Panter
b1d867f149 Issue #27076: Doc, comment and test function name spelling fixes
Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
2016-05-26 05:28:50 +00:00
Serhiy Storchaka
d4442ae53a Issue #26837: assertSequenceEqual() now correctly outputs non-stringified
differing items.  This affects assertListEqual() and assertTupleEqual().
2016-04-25 08:59:35 +03:00
Serhiy Storchaka
9b2e37f688 Marked keystrokes with the :kbd: role.
Fixed the case of the "Ctrl-" prefixes.
2015-09-12 17:47:12 +03:00
Serhiy Storchaka
049060c249 Reverted issue #24134 changes. 2015-05-16 16:21:10 +03:00
Serhiy Storchaka
2e2dcf6eac Fixed English in error message. 2015-05-06 19:21:00 +03:00
Serhiy Storchaka
7f71e04cb5 Issue #24134: assertRaises() and assertRaisesRegexp() checks are not longer
successful if the callable is None.

Added tests for assertRaises().
2015-05-06 19:10:40 +03:00
Ezio Melotti
906091b5d0 #22092: use absolute imports in unittest tests. Patch by Vajrasky Kok. 2014-08-07 03:20:22 +03:00
R David Murray
6d9117604f backport: #20145: assertRaisesRegexp now raises a TypeError on bad regex.
Previously a non-string, non-regex second argument and no callable
argument could cause the test to appear to always pass.
2014-03-25 15:29:42 -04:00
Serhiy Storchaka
9788e86096 Issue #19594: Use specific asserts in unittest tests. 2013-11-17 00:15:09 +02:00
Antoine Pitrou
5d791802c9 Issue #19352: Fix unittest discovery when a module can be reached through several paths (e.g. under Debian/Ubuntu with virtualenv). 2013-10-23 19:11:29 +02:00
Mark Dickinson
8fdd9deb45 Docstring typo fix: Arithmentic -> Arithmetic. 2013-09-09 10:32:08 +01:00
Michael Foord
050e9e5c59 Closes issue 14971.
unittest test discovery no longer gets confused when a function
has a different __name__ than its name in the TestCase class dictionary.
2013-09-08 15:34:27 +12:00
Terry Jan Reedy
0c534a4624 Silence deprecation warning in test_unittest for 'None > 1'.
This is the same change that was made in 3.x when this became an error.
2013-08-31 20:37:21 -04:00
Ezio Melotti
5dd99ebbc2 #18741: fix more typos. Patch by Févry Thibault. 2013-08-17 16:07:38 +03:00
Ezio Melotti
d599142197 #18663: document that assertAlmostEqual also works when the values are equal and add tests. 2013-08-11 13:04:50 +03:00
Ezio Melotti
035ecbe2f4 #8906: document failureException, longMessage, and maxDiff in the class docstring. Patch by Boris Feld. 2013-03-29 03:42:29 +02:00
Ezio Melotti
352def0ed2 #17329: document unittest.SkipTest. Initial patch by Zachary Ware. 2013-03-27 20:11:55 +02:00
Michael Foord
c36bf99189 Correction to issue 17052 fix 2013-02-11 12:53:21 +00:00
Michael Foord
cb66ee7f56 Issue 17502: unittest discovery should use self.testLoader 2013-02-10 23:59:46 +00:00
Michael Foord
77cd8aab23 Issue 15505. unittest.installHandler and non callable signal handlers 2013-01-29 22:59:02 +00:00
Andrew Svetlov
4bb142b1b7 Issue #16714: use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
2012-12-18 21:27:37 +02:00
Ezio Melotti
9b19c4bea9 #16433: fix docstring of assertNotEqual. 2012-11-08 11:08:39 +02:00
Michael Foord
bf2ad34650 Pass on parameters in unittest.TextTestResult.__init__ super call 2012-09-28 12:54:56 +01:00
Martin v. Löwis
ed11a5d018 Issue #8767: Restore building with --disable-unicode.
Original patch by Stefano Taschini.
2012-05-20 10:42:17 +02:00