summaryrefslogtreecommitdiffstats
path: root/Lib/unittest
Commit message (Collapse)AuthorAgeFilesLines
* 00132-add-rpmbuild-hooks-to-unittest.patchFedora Python maintainers2020-09-292-1/+40
| | | | | | | | | | | | | | | 00132 # Add non-standard hooks to unittest for use in the "check" phase below, when running selftests within the build: @unittest._skipInRpmBuild(reason) for tests that hang or fail intermittently within the build environment, and: @unittest._expectedFailureInRpmBuild for tests that always fail within the build environment The hooks only take effect if WITHIN_PYTHON_RPM_BUILD is set in the environment, which we set manually in the appropriate portion of the "check" phase below (and which potentially other python-* rpms could set, to reuse these unittest hooks in their own "check" phases)
* Update TestCase.assertAlmostEqual and assertNotAlmostEqual docstrings. ↵Miss Islington (bot)2017-10-181-2/+3
| | | | | | | (GH-3998) (GH-4040) The word "difference" from missing the sentence. This clarifies that it compares the difference between the two objects. (cherry picked from commit 032a6480e360427d4f964e31643604fad804ea14)
* Issue #29274: tests cases → test casesMartin Panter2017-01-182-8/+8
|
* Issue #28998: More APIs now support longs as well as ints.Serhiy Storchaka2016-12-271-1/+1
|
* Issue #27626: Spelling fixes in docs, comments and internal namesMartin Panter2016-07-281-2/+2
| | | | Based on patch by Ville Skyttä.
* Issue #27076: Doc, comment and test function name spelling fixesMartin Panter2016-05-261-1/+1
| | | | Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
* Issue #26837: assertSequenceEqual() now correctly outputs non-stringifiedSerhiy Storchaka2016-04-251-3/+3
| | | | differing items. This affects assertListEqual() and assertTupleEqual().
* Marked keystrokes with the :kbd: role.Serhiy Storchaka2015-09-121-1/+1
| | | | Fixed the case of the "Ctrl-" prefixes.
* Reverted issue #24134 changes.Serhiy Storchaka2015-05-162-12/+5
|
* Fixed English in error message.Serhiy Storchaka2015-05-061-1/+1
|
* Issue #24134: assertRaises() and assertRaisesRegexp() checks are not longerSerhiy Storchaka2015-05-062-5/+53
| | | | | | successful if the callable is None. Added tests for assertRaises().
* #22092: use absolute imports in unittest tests. Patch by Vajrasky Kok.Ezio Melotti2014-08-077-5/+8
|
* backport: #20145: assertRaisesRegexp now raises a TypeError on bad regex.R David Murray2014-03-252-2/+8
| | | | | Previously a non-string, non-regex second argument and no callable argument could cause the test to appear to always pass.
* Issue #19594: Use specific asserts in unittest tests.Serhiy Storchaka2013-11-163-9/+9
|
* Issue #19352: Fix unittest discovery when a module can be reached through ↵Antoine Pitrou2013-10-232-3/+25
| | | | several paths (e.g. under Debian/Ubuntu with virtualenv).
* Docstring typo fix: Arithmentic -> Arithmetic.Mark Dickinson2013-09-091-1/+1
|
* Closes issue 14971.Michael Foord2013-09-082-1/+18
| | | | | unittest test discovery no longer gets confused when a function has a different __name__ than its name in the TestCase class dictionary.
* Silence deprecation warning in test_unittest for 'None > 1'.Terry Jan Reedy2013-09-011-1/+1
| | | | This is the same change that was made in 3.x when this became an error.
* #18741: fix more typos. Patch by Févry Thibault.Ezio Melotti2013-08-171-1/+1
|
* #18663: document that assertAlmostEqual also works when the values are equal ↵Ezio Melotti2013-08-111-0/+4
| | | | and add tests.
* #8906: document failureException, longMessage, and maxDiff in the class ↵Ezio Melotti2013-03-291-12/+11
| | | | docstring. Patch by Boris Feld.
* #17329: document unittest.SkipTest. Initial patch by Zachary Ware.Ezio Melotti2013-03-271-1/+1
|
* Correction to issue 17052 fixMichael Foord2013-02-112-2/+2
|
* Issue 17502: unittest discovery should use self.testLoaderMichael Foord2013-02-102-1/+18
|
* Issue 15505. unittest.installHandler and non callable signal handlersMichael Foord2013-01-292-1/+47
|
* Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-181-2/+2
| | | | Patch by Serhiy Storchaka.
* #16433: fix docstring of assertNotEqual.Ezio Melotti2012-11-081-1/+1
|
* Pass on parameters in unittest.TextTestResult.__init__ super callMichael Foord2012-09-282-1/+14
|
* Issue #8767: Restore building with --disable-unicode.Martin v. Löwis2012-05-201-1/+5
| | | | Original patch by Stefano Taschini.
* #14832: 'first' now really refers to first arg in unittest assertItemsEqualR David Murray2012-05-161-1/+1
| | | | | | This appears to have been a mixup introduced when we switched from 'expected/actual' to 'first/second'. The problem doesn't exist in the corresponding assertCountEqual method in Python3.
* Issue #14664: It is now possible to use @unittest.skip{If,Unless} on a test ↵Antoine Pitrou2012-04-252-1/+32
| | | | class that doesn't inherit from TestCase (i.e. a mixin).
* this can be done without a custom dict (also fixes #12544)Benjamin Peterson2011-07-131-22/+3
|
* Issue 10326: Fix regression to get test cases to pickle again.Raymond Hettinger2011-06-252-7/+43
|
* Fix deprecation warnings in test_unittest.Ezio Melotti2011-05-091-4/+4
|
* #11763: don't use difflib in TestCase.assertMultiLineEqual if the strings ↵Ezio Melotti2011-04-272-0/+44
| | | | are too long.
* Issue #10979. unittest stdout buffering now works for class and module fixtures.Michael Foord2011-03-173-2/+91
|
* Issue #10242: backport of more fixes to unittest.TestCase.assertItemsEqualMichael Foord2011-03-174-40/+105
|
* #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-161-1/+1
|
* Issue 10242. Switching unittest.TestCase.assertItemsEqual to use a ↵Michael Foord2010-12-192-14/+19
| | | | | | 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.
* Issue 10611. SystemExit should not cause a unittest test run to exit.Michael Foord2010-12-192-4/+64
|
* Improvement to fix for issue 9926 to allow TestResult to be reused.Michael Foord2010-12-192-1/+6
|
* Merged revisions 87377 via svnmerge fromEzio Melotti2010-12-182-8/+8
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87377 | ezio.melotti | 2010-12-18 18:31:58 +0100 (Sat, 18 Dec 2010) | 1 line Use lowercase true/false in assertTrue/assertFalse messages. ........
* Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-213-12/+12
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
* Merged revisions 86511 via svnmerge fromBenjamin Peterson2010-11-181-1/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86511 | benjamin.peterson | 2010-11-18 08:14:43 -0600 (Thu, 18 Nov 2010) | 1 line reduce try block compass ........
* Merged revisions 86101 via svnmerge fromMichael Foord2010-11-013-19/+32
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86101 | michael.foord | 2010-11-01 21:09:03 +0000 (Mon, 01 Nov 2010) | 1 line Fix issue 9926. TestSuite subclasses that override __call__ are called correctly. ........
* Fix error message for comparing single line strings in ↵Michael Foord2010-07-102-3/+23
| | | | | | unittest.TestCase.assertEqual. Issue 9174
* Fix issue with nested test suites debug method and module setups. (unittest)Michael Foord2010-06-102-2/+4
|
* Typo correction.Michael Foord2010-06-091-1/+1
|
* Issue 8948. cleanup functions are not run by unittest.TestCase.debug(), plus ↵Michael Foord2010-06-084-2/+116
| | | | class and module teardowns are not run by unittest.TestSuite.debug().
* Code formatting change.Michael Foord2010-06-051-0/+1
|