summaryrefslogtreecommitdiffstats
path: root/Doc/library/test.rst
Commit message (Collapse)AuthorAgeFilesLines
* [doc] Fix erroneous backslashes in signatures and names (GH-23658)Andre Delfino2020-12-171-2/+2
| | | | | The issue being resolved is shown in the 3.10 docs (if you select docs for older versions you won't see a visual glitch). The newer sphinx version that produces the 3.10 docs doesn't treat the backslash to escape things in some situations it previously did.
* Document that `test.support.bytecode_helper` is new in 3.9 (GH-22618)Saiyang Gou2020-10-151-0/+2
|
* bpo-41521: Rename blacklist parameter to not_exported (GH-21824)Victor Stinner2020-08-171-5/+5
| | | | Rename "blacklist" parameter of test.support.check__all__() to "not_exported".
* bpo-38377: Add support.skip_if_broken_multiprocessing_synchronize() (GH-20944)Victor Stinner2020-06-181-0/+8
| | | | | | On Linux, skip tests using multiprocessing if the current user cannot create a file in /dev/shm/ directory. Add the skip_if_broken_multiprocessing_synchronize() function to the test.support module.
* bpo-40275: Move TransientResource to test_urllib2net (GH-20812)Victor Stinner2020-06-111-9/+0
| | | | | | Move TransientResource, time_out, socket_peer_reset and ioerror_peer_reset from test.support to test_urllib2net. Remove "import errno" from test.support.
* bpo-40275: Add warnings_helper submodule in test.support (GH-20797)Hai Shi2020-06-111-93/+102
|
* bpo-40275: Add import_helper submodule in test.support (GH-20794)Hai Shi2020-06-101-103/+116
|
* bpo-40275: Add os_helper submodule in test.support (GH-20765)Hai Shi2020-06-101-172/+184
|
* bpo-40275: Remove test.support.TESTFN_ENCODING (GH-20482)Hai Shi2020-05-281-5/+0
| | | Replace test.support.TESTFN_ENCODING with sys.getfilesystemencoding().
* bpo-40275: Adding threading_helper submodule in test.support (GH-20263)Hai Shi2020-05-271-67/+78
|
* bpo-40275: Move transient_internet from test.support to socket_helper (GH-19711)Serhiy Storchaka2020-04-291-7/+8
|
* bpo-40275: Avoid importing logging in test.support (GH-19601)Serhiy Storchaka2020-04-251-5/+0
| | | | | Import logging lazily in assertLogs() in unittest. Move TestHandler from test.support to logging_helper.
* bpo-40275: Avoid importing socket in test.support (GH-19603)Serhiy Storchaka2020-04-251-59/+71
| | | | | | * Move socket related functions from test.support to socket_helper. * Import socket, nntplib and urllib.error lazily in transient_internet(). * Remove importing multiprocess.
* bpo-39983: Add test.support.print_warning() (GH-19683)Victor Stinner2020-04-231-0/+9
| | | | | | | Log "Warning -- ..." test warnings into sys.__stderr__ rather than sys.stderr, to ensure to display them even if sys.stderr is captured. test.libregrtest.utils.print_warning() now calls test.support.print_warning().
* bpo-40094: Add test.support.wait_process() (GH-19254)Victor Stinner2020-03-311-0/+15
| | | | | | | | | Moreover, the following tests now check the child process exit code: * test_os.PtyTests * test_mailbox.test_lock_conflict() * test_tempfile.test_process_awareness() * test_uuid.testIssue8621() * multiprocessing resource tracker tests
* bpo-39136: Fixed typos (GH-17720)Gurupad Hegde2019-12-281-1/+1
| | | | | funtion -> function; configuraton -> configuration; defintitions -> definitions; focusses -> focuses; necesarily -> necessarily; follwing -> following; Excape -> Escape,
* bpo-38991: Remove test.support.strip_python_stderr() (GH-17490)Victor Stinner2019-12-081-7/+9
| | | | | test.support: run_python_until_end(), assert_python_ok() and assert_python_failure() functions no longer strip whitespaces from stderr.
* bpo-38614: Add timeout constants to test.support (GH-16964)Victor Stinner2019-10-301-0/+61
| | | | | | | | Add timeout constants to test.support: * LOOPBACK_TIMEOUT * INTERNET_TIMEOUT * SHORT_TIMEOUT * LONG_TIMEOUT
* bpo-18578: Rename and document test.bytecode_helper as ↵Joannah Nanjekye2019-09-121-0/+30
| | | | | test.support.bytecode_helper (GH-15168) Rename and document test.bytecode_helper as test.support.bytecode_helper
* bpo-37648: Fixed minor inconsistency in some __contains__. (GH-14904)Serhiy Storchaka2019-08-041-0/+6
| | | | | The collection's item is now always at the left and the needle is on the right of ==.
* bpo-37685: Fixed comparisons of datetime.timedelta and datetime.timezone. ↵Serhiy Storchaka2019-08-041-0/+17
| | | | | | | | | (GH-14996) There was a discrepancy between the Python and C implementations. Add singletons ALWAYS_EQ, LARGEST and SMALLEST in test.support to test mixed type comparison.
* bpo-37526: Add support.catch_threading_exception() (GH-14664)Victor Stinner2019-07-091-0/+33
| | | | Context manager catching threading.Thread exception using threading.excepthook.
* bpo-37261: Document sys.unraisablehook corner cases (GH-14059)Victor Stinner2019-06-141-7/+3
| | | | | | | | | | | Document reference cycle and resurrected objects issues in sys.unraisablehook() and threading.excepthook() documentation. Fix test.support.catch_unraisable_exception(): __exit__() no longer ignores unraisable exceptions. Fix test_io test_writer_close_error_on_close(): use a second catch_unraisable_exception() to catch the BufferedWriter unraisable exception.
* bpo-37261: Fix support.catch_unraisable_exception() (GH-14052)Victor Stinner2019-06-131-0/+12
| | | | | The __exit__() method of test.support.catch_unraisable_exception context manager now ignores unraisable exception raised when clearing self.unraisable attribute.
* bpo-36829: Document test.support.catch_unraisable_exception() (GH-13554)Victor Stinner2019-05-241-0/+20
| | | | catch_unraisable_exception() now also removes its 'unraisable' attribute at the context manager exit.
* bpo-36019: Use pythontest.net instead of example.com in network tests (GH-11941)Stéphane Wirtel2019-02-221-0/+4
|
* bpo-35798: Add test.support.check_syntax_warning(). (#11895)Serhiy Storchaka2019-02-191-3/+18
| | | | | | | It checks that a SyntaxWarning is raised when compile specified statement, that it is raised only once, that it is converted to a SyntaxError when raised as exception, and that both warning and exception objects have corresponding attributes.
* bpo-35042: Use the :pep: role where a PEP is specified (#10036)Stéphane Wirtel2018-10-261-1/+1
|
* Fix "Python" casing in a few places (GH-9001)Andrés Delfino2018-09-141-1/+1
|
* Spelling fixes to docs, docstrings, and comments (GH-6374)Ville Skyttä2018-04-201-1/+1
|
* Fix duplicating words words. (GH-6296)Serhiy Storchaka2018-03-281-1/+1
| | | Most of them have been added in 3.7.
* bpo-33053: -m now adds *starting* directory to sys.path (GH-6231)Nick Coghlan2018-03-251-2/+2
| | | | | | | | | | | | Historically, -m added the empty string as sys.path zero, meaning it resolved imports against the current working directory, the same way -c and the interactive prompt do. This changes the sys.path initialisation to add the *starting* working directory as sys.path[0] instead, such that changes to the working directory while the program is running will have no effect on imports when using the -m switch.
* bpo-32964: Reuse a testing implementation of the path protocol in tests. (#5930)Serhiy Storchaka2018-03-021-0/+7
|
* bpo-11015: Update test.support documentation (GH-5610)Cheryl Sabella2018-02-111-6/+722
|
* bpo-31567: add or fix decorator markup in docs (#3959)Daisuke Miyakawa2017-10-121-1/+1
|
* bpo-31569: correct PCBuild/ case to PCbuild/ in build scripts and docs (GH-3711)Stefan Grönke2017-09-251-1/+1
|
* Fix trailing colon and newline in test.rst (#1250)Louie Lu2017-04-221-1/+2
|
* Issue #19795: Mark up None as literal text.Serhiy Storchaka2016-10-191-2/+2
|\
| * Issue #19795: Mark up None as literal text.Serhiy Storchaka2016-10-191-2/+2
| |
* | Merge Issue #22558.Terry Jan Reedy2016-06-111-0/+2
|\ \ | |/
| * Issue #22558: Add remaining doc links to source code for Python-coded modules.Terry Jan Reedy2016-06-111-0/+2
| | | | | | | | | | Reformat header above separator line (added if missing) to a common format. Patch by Yoni Lavi.
* | Merge doc and comment fixes from 3.5Martin Panter2016-04-191-1/+1
|\ \ | |/
| * Fix spelling (inital), grammar (may translates) in documentation, commentsMartin Panter2016-04-191-1/+1
| |
* | merge with 3.5Georg Brandl2016-02-261-1/+1
|\ \ | |/
| * Closes #25910: fix dead and permanently redirected links in the docs. Thanks ↵Georg Brandl2016-02-261-1/+1
| | | | | | | | to SilentGhost for the patch.
* | Issue #23883: Add test.support.check__all__() and test gettext.__all__Martin Panter2015-11-141-0/+42
|/ | | | Patches by Jacek Kołodziej.
* Merge typo fixes from 3.4 into 3.5Martin Panter2015-10-071-1/+1
|\
| * Various minor typos in documentation and commentsMartin Panter2015-10-071-1/+1
| |
| * Doc: fix default role usage (except in unittest mock docs)Georg Brandl2014-10-301-3/+3
| |
* | Fix usage of the default role.Zachary Ware2015-07-071-3/+3
| |