summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libtest.tex
Commit message (Collapse)AuthorAgeFilesLines
* Standardize on test.test_support.run_unittest() (as opposed to a mix of ↵Collin Winter2007-04-251-8/+14
| | | | run_unittest() and run_suite()). Also, add functionality to run_unittest() that admits usage of unittest.TestLoader.loadTestsFromModule().
* Change the docs to no longer claim that unittest is preferred over doctest forBrett Cannon2007-03-251-7/+7
| | | | regression tests.
* Introduce test.test_support.TransientResource. It's a context manager toBrett Cannon2007-03-081-0/+8
| | | | | | | | | | | surround calls to resources that may or may not be available. Specifying the expected exception and attributes to be raised if the resource is not available prevents overly broad catching of exceptions. This is meant to help suppress spurious failures by raising test.test_support.ResourceDenied if the exception matches. It would probably be good to go through the various network tests and surround the calls to catch connection timeouts (as done with test_socket_ssl in this commit).
* Fix error where the end of a funcdesc environment was accidentally moved tooBrett Cannon2007-01-121-1/+1
| | | | far down.
* Add EnvironmentVarGuard to test.test_support. Provides a context manager toBrett Cannon2007-01-041-0/+18
| | | | temporarily set or unset environment variables.
* Note that guard_warnings_filter was added in 2.6George Yoshida2006-12-141-0/+2
|
* Add test.test_support.guard_warnings_filter . This function returns a contextBrett Cannon2006-12-131-0/+4
| | | | | manager that protects warnings.filter from being modified once the context is exited.
* Have test_mkalias_relative check that sys.prefix already exists; otherwise testBrett Cannon2004-12-061-2/+6
| | | | | | | | | | is pointless. Also add a note to the docs for the 'test' package that test cases should check first that any conditions needed in the operating system are met before having a test run. Closes bug #1077302. THanks, Ian Holsman.
* Fix capitalization of title for subsection 2.Brett Cannon2004-03-181-1/+1
|
* - reorganize sectionsFred Drake2003-09-061-137/+135
| | | | | - correct section level error (module references are always \section) - many markup revisions, including some minor rewordings
* SF bug #801486: Markup error.Raymond Hettinger2003-09-061-2/+1
|
* Make this format again.Fred Drake2003-05-091-10/+12
|
* Library documentation for the 'test' package. Still needs to be checked by ↵Brett Cannon2003-05-071-0/+275
Fred.