Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | unittest.TestLoader creates a TestSuite before calling load_tests. Issue 7799. | Michael Foord | 2010-02-06 | 1 | -0/+2 |
| | |||||
* | Silence a couple of -3 warnings | Ezio Melotti | 2010-02-02 | 1 | -2/+5 |
| | |||||
* | use assert[Not]IsInstance where appropriate | Ezio Melotti | 2010-01-24 | 1 | -26/+26 |
| | |||||
* | use assert[Not]In where appropriate | Ezio Melotti | 2010-01-23 | 1 | -4/+4 |
| | |||||
* | Reverting the Revision: 77368. I committed Flox's big patch for tests by | Senthil Kumaran | 2010-01-08 | 1 | -5/+2 |
| | | | | mistake. ( It may come in for sure tough) | ||||
* | Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵ | Senthil Kumaran | 2010-01-08 | 1 | -2/+5 |
| | | | | Patch by flox | ||||
* | Issue #7197: Allow unittest.TextTestRunner objects to be pickled and | Antoine Pitrou | 2009-11-10 | 1 | -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 alterations | Nick Coghlan | 2009-10-17 | 1 | -5/+9 |
| | |||||
* | #7031: Add TestCase.assertIsInstance and negated method. | Georg Brandl | 2009-10-01 | 1 | -0/+12 |
| | |||||
* | Test discovery in unittest will only attempt to import modules that are ↵ | Michael Foord | 2009-09-13 | 1 | -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 Foord | 2009-09-13 | 1 | -0/+41 |
| | | | | attribute. Issue 6866. | ||||
* | Objects that compare equal automatically pass or fail assertAlmostEqual and ↵ | Michael Foord | 2009-09-13 | 1 | -0/+5 |
| | | | | assertNotAlmostEqual tests on unittest.TestCase. Issue 6567. | ||||
* | issue 6275 | Kristján Valur Jónsson | 2009-08-27 | 1 | -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 package | Benjamin Peterson | 2009-07-19 | 1 | -2/+4 |
| | |||||
* | Move TestRunner initialisation into unittest.TestProgram.runTests. Fixes ↵ | Michael Foord | 2009-07-14 | 1 | -9/+0 |
| | | | | issue 6418. | ||||
* | use assert* methods in test_unittest | Benjamin Peterson | 2009-06-30 | 1 | -53/+53 |
| | |||||
* | Fix unittest discovery tests for Windows. Issue 6199 | Michael Foord | 2009-06-05 | 1 | -1/+3 |
| | |||||
* | Restore default testRunner argument in unittest.main to None. Issue 6177 | Michael Foord | 2009-06-02 | 1 | -0/+8 |
| | |||||
* | Add test discovery to unittest. Issue 6001. | Michael Foord | 2009-05-29 | 1 | -1/+296 |
| | |||||
* | make class skipping decorators the same as skipping every test of the class | Benjamin Peterson | 2009-05-25 | 1 | -8/+9 |
| | | | | This removes ClassTestSuite and a good bit of hacks. | ||||
* | Rename TestCase._result to _resultForDoCleanups to avoid potential clashes ↵ | Michael Foord | 2009-05-21 | 1 | -1/+1 |
| | | | | in TestCase subclasses. Issue 6072. | ||||
* | Adds a verbosity keyword argument to unittest.main plus a minor fix allowing ↵ | Michael Foord | 2009-05-11 | 1 | -10/+13 |
| | | | | | | | | | | you to specify test modules / classes from the command line. Closes issue 5995. Michael Foord | ||||
* | (no commit message) | Michael Foord | 2009-05-02 | 1 | -37/+197 |
| | |||||
* | Add addCleanup and doCleanups to unittest.TestCase. | Michael Foord | 2009-05-02 | 1 | -2/+106 |
| | | | | | | Closes issue 5679. Michael Foord | ||||
* | don't let sys.argv be used in the tests | Benjamin Peterson | 2009-05-02 | 1 | -2/+5 |
| | |||||
* | Adds an exit parameter to unittest.main(). If False main no longer | Michael Foord | 2009-05-02 | 1 | -2/+71 |
| | | | | | | | | calls sys.exit. Closes issue 3379. Michael Foord | ||||
* | Adding assertIs and assertIsNot methods to unittest.TestCase | Michael Foord | 2009-04-05 | 1 | -0/+23 |
| | | | | Issue #2578 | ||||
* | Store the functions in the _type_equality_funcs as wrapped objects that are ↵ | Michael Foord | 2009-04-02 | 1 | -0/+12 |
| | | | | | | | | deep copyable. This allows for the deep copying of TestCase instances. Issue 5660 | ||||
* | Better exception messages for unittest assert methods. | Michael Foord | 2009-04-02 | 1 | -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. Smith | 2009-03-31 | 1 | -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. Smith | 2009-03-31 | 1 | -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 Peterson | 2009-03-26 | 1 | -2/+2 |
| | | | | with trial #5571 | ||||
* | comply with the evilJavaNamingScheme for attribute names | Benjamin Peterson | 2009-03-23 | 1 | -2/+2 |
| | | | | It seems my love of PEP 8 overrode the need for consistentcy | ||||
* | implement test skipping and expected failures | Benjamin Peterson | 2009-03-23 | 1 | -6/+124 |
| | | | | patch by myself #1034053 | ||||
* | Issue #4444: Allow assertRaises() to be used as a context handler. | Antoine Pitrou | 2008-12-28 | 1 | -0/+37 |
| | |||||
* | Backport PEP 3141 from the py3k branch to the trunk. This includes r50877 (just | Jeffrey Yasskin | 2008-01-03 | 1 | -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 Heimes | 2007-11-27 | 1 | -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ónsson | 2007-05-03 | 1 | -2/+4 |
| | | | | overflow on x64. Now the testsuite is well behaved on that platform. | ||||
* | Whitespace normalization. | Tim Peters | 2007-03-12 | 1 | -416/+416 |
| | |||||
* | Add some sanity checks to unittest.TestSuite's addTest(s) methods. | Georg Brandl | 2007-03-07 | 1 | -0/+13 |
| | | | | Fixes #878275. | ||||
* | Patches #1550273, #1550272: fix a few bugs in unittest and add a | Georg Brandl | 2007-03-07 | 1 | -17/+2275 |
| | | | | comprehensive test suite for the module. | ||||
* | Added an __iter__ method for test suites. | Jim Fulton | 2004-08-28 | 1 | -0/+31 |