summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/test/test_program.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-93839: Move Lib/unttest/test/ to Lib/test/test_unittest/ (#94043)Victor Stinner2022-06-211-477/+0
| | | | | | | | * Move Lib/unittest/test/ to Lib/test/test_unittest/ * Remove Lib/test/test_unittest.py * Replace unittest.test with test.test_unittest * Remove unittest.load_tests() * Rewrite unittest __init__.py and __main__.py * Update build system, CODEOWNERS, and wasm_assets.py
* gh-57684: Update tests for PYTHONSAFEPATH=1 (#92358)Victor Stinner2022-05-061-1/+3
| | | | | Fix tests failing with the PYTHONSAFEPATH=1 env var. Enhance also -P help in Python usage (python --help).
* bpo-40280: Skip socket, fork, subprocess tests on Emscripten (GH-31986)Christian Heimes2022-03-221-0/+1
| | | | | | | | | | | - Add requires_fork and requires_subprocess to more tests - Skip extension import tests if dlopen is not available - Don't assume that _testcapi is a shared extension - Skip a lot of socket tests that don't work on Emscripten - Skip mmap tests, mmap emulation is incomplete - venv does not work yet - Cannot get libc from executable The "entire" test suite is now passing on Emscripten with EMSDK from git head (91 suites are skipped).
* bpo-45162: Revert "Remove many old deprecated unittest features" (GH-30935)Gregory P. Smith2022-01-271-8/+8
| | | | | | | | | | Revert "bpo-45162: Remove many old deprecated unittest features (GH-28268)" This reverts commit b0a6ede3d0bd6fa4ffe413ab4dfc1059201df25b. We're deferring this change until 3.12 while upstream projects that use the legacy assertion method names are fixed. See the issue for links to the discussion. Many upstream projects now have issues and PRs filed.
* bpo-46425: Fix direct invocation of multiple test modules (GH-30666)Nikita Sobolev2022-01-181-1/+1
|
* bpo-22815: Print unexpected successes in summary in TextTestResult (GH-30138)Serhiy Storchaka2021-12-261-8/+32
|
* bpo-46111: Fix unittest tests in optimized mode (GH-30163)Serhiy Storchaka2021-12-171-2/+2
|
* bpo-13236: Flush the output stream more often in unittest (GH-29864)Serhiy Storchaka2021-12-041-3/+13
| | | It can prevent some losses when output to buffered stream.
* bpo-45162: Remove many old deprecated unittest features (GH-28268)Serhiy Storchaka2021-09-171-8/+8
| | | | | | | * "fail*" and "assert*" aliases of TestCase methods. * Broken from start TestCase method assertDictContainsSubset(). * Ignored TestLoader.loadTestsFromModule() parameter use_load_tests. * Old alias _TextTestResult of TextTestResult.
* bpo-40462: fix variable and function names (GH-19832)Furkan Önder2020-05-011-2/+0
| | | Automerge-Triggered-By: @vstinner
* bpo-32071: Add unittest -k option (#4496)Jonas Haag2017-11-251-0/+28
| | | | * bpo-32071: Add unittest -k option
* Issue #22936: Allow showing local variables in unittest errors.Robert Collins2015-03-061-4/+22
|
* #22092: use absolute imports in unittest tests. Patch by Vajrasky Kok.Ezio Melotti2014-08-071-0/+1
|
* Issue #17974: Switch unittest from using getopt to using argparse.Serhiy Storchaka2013-08-291-9/+28
|
* #18741: merge with 3.3.Ezio Melotti2013-08-171-1/+1
|\
| * #18741: fix more typos. Patch by Févry Thibault.Ezio Melotti2013-08-171-1/+1
| |
* | #17510: avoid using deprecated assertEquals method in test_program. Patch ↵Ezio Melotti2013-03-231-2/+2
| | | | | | | | by Daniel Black.
* | Issue #15132: Allow a list for the defaultTest argument of unittest.TestProgramPetri Lehtinen2013-02-231-0/+35
|/ | | | Patch by Jyrki Pulliainen
* Refactor unittest command line handling to always use optparseMichael Foord2012-03-121-17/+0
|
* Save a copy of sys.warnoptions in test_program.Ezio Melotti2011-03-201-1/+1
|
* Fix minor issue in implementation of issue 10470.Michael Foord2010-12-191-0/+1
|
* Correct comment in unittest testMichael Foord2010-12-041-1/+1
|
* Issue 10620: Specifying test modules by path instead of module name to ↵Michael Foord2010-12-041-0/+79
| | | | 'python -m unittest'
* #10535: Enable silenced warnings in unittest by defaultEzio Melotti2010-12-011-1/+24
|
* Merged revisions 80920 via svnmerge fromMichael Foord2010-05-071-0/+164
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80920 | michael.foord | 2010-05-07 17:52:05 +0200 (Fri, 07 May 2010) | 1 line Adding tests for unittest command line handling of buffer, catchbreak and failfast. ........
* Merged revisions 80918 via svnmerge fromMichael Foord2010-05-071-0/+17
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80918 | michael.foord | 2010-05-07 17:34:08 +0200 (Fri, 07 May 2010) | 1 line Adding a test for unittest test discovery with dotted path name. ........
* Breaking test_unittest.py into a package. Manual merge of revision 79432.Michael Foord2010-03-271-0/+74