summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_unittest.py
Commit message (Collapse)AuthorAgeFilesLines
* unittest.TestLoader creates a TestSuite before calling load_tests. Issue 7799.Michael Foord2010-02-061-0/+2
|
* Silence a couple of -3 warningsEzio Melotti2010-02-021-2/+5
|
* use assert[Not]IsInstance where appropriateEzio Melotti2010-01-241-26/+26
|
* use assert[Not]In where appropriateEzio Melotti2010-01-231-4/+4
|
* Reverting the Revision: 77368. I committed Flox's big patch for tests bySenthil Kumaran2010-01-081-5/+2
| | | | mistake. ( It may come in for sure tough)
* Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵Senthil Kumaran2010-01-081-2/+5
| | | | Patch by flox
* Issue #7197: Allow unittest.TextTestRunner objects to be pickled andAntoine Pitrou2009-11-101-1/+15
| | | | | | | unpickled. This fixes crashes under Windows when trying to run test_multiprocessing in verbose mode. Additionally, Test_TextTestRunner hadn't been enabled in test_unittest.
* Check and revert expected sys.path alterationsNick Coghlan2009-10-171-5/+9
|
* #7031: Add TestCase.assertIsInstance and negated method.Georg Brandl2009-10-011-0/+12
|
* Test discovery in unittest will only attempt to import modules that are ↵Michael Foord2009-09-131-29/+33
| | | | importable; i.e. their names are valid Python identifiers. If an import fails during discovery this will be recorded as an error and test discovery will continue. Issue 6568.
* unittest.TestLoader.loadTestsFromName honors the loader suiteClass ↵Michael Foord2009-09-131-0/+41
| | | | attribute. Issue 6866.
* Objects that compare equal automatically pass or fail assertAlmostEqual and ↵Michael Foord2009-09-131-0/+5
| | | | assertNotAlmostEqual tests on unittest.TestCase. Issue 6567.
* issue 6275Kristján Valur Jónsson2009-08-271-0/+15
| | | | 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-2/+4
|
* Move TestRunner initialisation into unittest.TestProgram.runTests. Fixes ↵Michael Foord2009-07-141-9/+0
| | | | issue 6418.
* use assert* methods in test_unittestBenjamin Peterson2009-06-301-53/+53
|
* Fix unittest discovery tests for Windows. Issue 6199Michael Foord2009-06-051-1/+3
|
* Restore default testRunner argument in unittest.main to None. Issue 6177Michael Foord2009-06-021-0/+8
|
* Add test discovery to unittest. Issue 6001.Michael Foord2009-05-291-1/+296
|
* make class skipping decorators the same as skipping every test of the classBenjamin Peterson2009-05-251-8/+9
| | | | This removes ClassTestSuite and a good bit of hacks.
* Rename TestCase._result to _resultForDoCleanups to avoid potential clashes ↵Michael Foord2009-05-211-1/+1
| | | | in TestCase subclasses. Issue 6072.
* Adds a verbosity keyword argument to unittest.main plus a minor fix allowing ↵Michael Foord2009-05-111-10/+13
| | | | | | | | | | you to specify test modules / classes from the command line. Closes issue 5995. Michael Foord
* (no commit message)Michael Foord2009-05-021-37/+197
|
* Add addCleanup and doCleanups to unittest.TestCase.Michael Foord2009-05-021-2/+106
| | | | | | Closes issue 5679. Michael Foord
* don't let sys.argv be used in the testsBenjamin Peterson2009-05-021-2/+5
|
* Adds an exit parameter to unittest.main(). If False main no longerMichael Foord2009-05-021-2/+71
| | | | | | | | calls sys.exit. Closes issue 3379. Michael Foord
* Adding assertIs and assertIsNot methods to unittest.TestCaseMichael Foord2009-04-051-0/+23
| | | | Issue #2578
* Store the functions in the _type_equality_funcs as wrapped objects that are ↵Michael Foord2009-04-021-0/+12
| | | | | | | | deep copyable. This allows for the deep copying of TestCase instances. Issue 5660
* Better exception messages for unittest assert methods.Michael Foord2009-04-021-1/+171
| | | | | | | | | | | | - unittest.assertNotEqual() now uses the inequality operator (!=) instead of the equality operator. - Default assertTrue and assertFalse messages are now useful. - TestCase has a longMessage attribute. This defaults to False, but if set to True useful error messages are shown in addition to explicit messages passed to assert methods. Issue #5663
* Rename the actual method definitions to the official assertFoo names.Gregory P. Smith2009-03-311-1/+27
| | | | | | | | | | Adds unittests to make sure the old fail* names continue to work now and adds a comment that they are pending deprecation. Also adds a test to confirm that the plural Equals method variants continue to exist even though we're unlikely to deprecate those. http://bugs.python.org/issue2578
* The unittest.TestCase.assertEqual() now displays the differences in lists,Gregory P. Smith2009-03-311-47/+417
| | | | | | | | | | tuples, dicts and sets on failure. Many new handy type and comparison specific assert* methods have been added that fail with error messages actually useful for debugging. Contributed in by Google and completed with help from mfoord and GvR at PyCon 2009 sprints. Discussion lives in http://bugs.python.org/issue2578.
* rename TestCase.skip() to skipTest() because it causes annoying problems ↵Benjamin Peterson2009-03-261-2/+2
| | | | with trial #5571
* comply with the evilJavaNamingScheme for attribute namesBenjamin Peterson2009-03-231-2/+2
| | | | It seems my love of PEP 8 overrode the need for consistentcy
* implement test skipping and expected failuresBenjamin Peterson2009-03-231-6/+124
| | | | patch by myself #1034053
* Issue #4444: Allow assertRaises() to be used as a context handler.Antoine Pitrou2008-12-281-0/+37
|
* Backport PEP 3141 from the py3k branch to the trunk. This includes r50877 (justJeffrey Yasskin2008-01-031-1/+22
| | | | | | | the complex_pow part), r56649, r56652, r56715, r57296, r57302, r57359, r57361, r57372, r57738, r57739, r58017, r58039, r58040, and r59390, and new documentation. The only significant difference is that round(x) returns a float to preserve backward-compatibility. See http://bugs.python.org/issue1689.
* Replaced import of the 'new' module with 'types' module and added a ↵Christian Heimes2007-11-271-58/+30
| | | | deprecation warning to the 'new' module.
* Fix those parts in the testsuite that assumed that sys.maxint would cause ↵Kristján Valur Jónsson2007-05-031-2/+4
| | | | overflow on x64. Now the testsuite is well behaved on that platform.
* Whitespace normalization.Tim Peters2007-03-121-416/+416
|
* Add some sanity checks to unittest.TestSuite's addTest(s) methods.Georg Brandl2007-03-071-0/+13
| | | | Fixes #878275.
* Patches #1550273, #1550272: fix a few bugs in unittest and add aGeorg Brandl2007-03-071-17/+2275
| | | | comprehensive test suite for the module.
* Added an __iter__ method for test suites.Jim Fulton2004-08-281-0/+31