summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_unittest.py
Commit message (Collapse)AuthorAgeFilesLines
* Rename the unittest test_suite function to not clash with a test module name ↵Michael Foord2010-03-271-1/+1
| | | | (unittest.test.test_suite is now unambiguous).
* reorder importsBenjamin Peterson2010-03-261-1/+2
|
* Turn unittest tests into a packageMichael Foord2010-03-251-4420/+4
|
* Fix test_unittest and test_warnings when running "python -Werror -m ↵Florent Xicluna2010-03-251-11/+6
| | | | test.regrtest"
* expected failure should not trigger failfast behavior in unittest.Michael Foord2010-03-221-6/+0
|
* Removing Python 2.3 compatibility code from unittest.Michael Foord2010-03-221-1/+3
|
* Fix failing test committed by accident.Michael Foord2010-03-221-1/+1
|
* -f/--failfast command line option for unittest. Issue 8074. Documentation ↵Michael Foord2010-03-221-20/+54
| | | | still needed. Plus minor change to test_unittest to allow it to be run with python -m test.unittest
* Issue 7815. __unittest in module globals trims frames from reported ↵Michael Foord2010-03-221-0/+10
| | | | stacktraces in unittest.
* A faulty load_tests in a test module no longer halts test discovery. A ↵Michael Foord2010-03-211-0/+15
| | | | placeholder test, that reports the failure, is created instead.
* Issue 7832: renaming unittest.TestCase.assertSameElements to ↵Michael Foord2010-03-201-20/+51
| | | | assertItemsEqual and changing behaviour
* Addition of setUpClass and setUpModule shared fixtures to unittest.Michael Foord2010-03-071-1/+395
|
* Fix for potentials errors in constructing unittest failure messages. Plus ↵Michael Foord2010-03-071-0/+47
| | | | skipped test methods no longer run setUp and tearDown (Issue 8059)
* unittest.TestResult can now be used with the TextTestRunner. TextTestRunner ↵Michael Foord2010-02-231-1/+18
| | | | compatible with old TestResult objects.
* Issue 6292: for the moment at least, the test suite passes if runR. David Murray2010-02-231-0/+8
| | | | | | with -OO. Tests requiring docstrings are skipped. Patch by Brian Curtin, thanks to Matias Torchinsky for helping review and improve the patch.
* Support for old TestResult object (unittest) with warnings when using ↵Michael Foord2010-02-221-1/+49
| | | | unsupported features.
* Silence UnicodeWarning in crazy unittest test.Michael Foord2010-02-211-4/+7
|
* Fix unittest.TestCase.assertDictContainsSubset so it can't die with unicode ↵Michael Foord2010-02-181-6/+3
| | | | issues when constructing failure messages. Issue 7956
* unittest.TestCase uses safe_repr for producing failure messages. Partial fix ↵Michael Foord2010-02-181-12/+20
| | | | for issue 7956
* Fix for unittest tests, to be merged to py3kMichael Foord2010-02-101-3/+3
|
* Issue 7893 and Issue 7588Michael Foord2010-02-101-10/+45
|
* Make assertMultiLineEqual the default for comparing unicode strings.Michael Foord2010-02-081-2/+3
|
* assertRaises as context manager now allows you to access exception as documentedMichael Foord2010-02-071-2/+7
|
* Rename "exc_value" attribute on assertRaises context manager to "exception".Georg Brandl2010-02-071-9/+1
|
* 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