summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Fix closes issue12581 - Increase the urllib.parse test coverage. Patch by ↵Senthil Kumaran2011-07-231-2/+76
| | | | Petter Haggholm.
* type check AST strings and identifiersBenjamin Peterson2011-07-221-0/+14
| | | | This is related to a21829180423 as well as #12609 and #12610.
* Issue #12587: Correct faulty test file and reference in test_tokenize.Ned Deily2011-07-192-2/+2
| | | | (Patch by Robert Xiao)
* #7484: no more <> around addresses in VRFY or EXPNR David Murray2011-07-191-9/+24
| | | | | | | | | The RFC doesn't say that they are allowed; apparently many mailers accept them, but not postfix. Contributions to this patch were made by Felipe Cruz and Catalin Iacob. The changeset also adds additional indirect tests for quoteaddr (null address and IDNA-encoded address).
* Closes #12579. Positional fields with str.format_map() now raise a ↵Eric V. Smith2011-07-181-0/+5
| | | | ValueError instead of SystemError.
* Use test.script_helper in test_pydocAntoine Pitrou2011-07-151-11/+13
|
* test_pydoc needs to cleanup after itselfAntoine Pitrou2011-07-151-13/+16
|
* Try harder to reap dangling threads in test.support.reap_threads().Antoine Pitrou2011-07-151-6/+13
|
* Issue #12573: Add resource checks for dangling Thread and Process objects.Antoine Pitrou2011-07-151-1/+36
|
* MergeAntoine Pitrou2011-07-151-0/+8
|\
| * Issue #11603: Fix a crash when __str__ is rebound as __repr__.Antoine Pitrou2011-07-151-0/+8
| |\ | | | | | | | | | Patch by Andreas Stührk.
| | * Issue #11603: Fix a crash when __str__ is rebound as __repr__.Antoine Pitrou2011-07-151-0/+8
| | | | | | | | | | | | Patch by Andreas Stührk.
* | | merge headsBenjamin Peterson2011-07-151-9/+13
|\ \ \ | |/ /
| * | Make sure to reap worker threads and processes at the end of ↵Antoine Pitrou2011-07-151-9/+13
| | | | | | | | | | | | test_concurrent_futures
* | | catch nasty exception classes with __new__ that doesn't return a exception ↵Benjamin Peterson2011-07-151-0/+9
|/ / | | | | | | | | | | (closes #11627) Patch from Andreas Stührk.
* | this should be an identity testBenjamin Peterson2011-07-141-1/+1
| |
* | Issue #12250: test_socketserver uses a timeout of 60 seconds instead of 20Victor Stinner2011-07-141-2/+1
| | | | | | | | | | test_shutdown() may fail on very slow buildbots like FreeBSD 6.4 just because of the arbitrary timeout.
* | Restore the global state of the log vars, so that test_cgi can be run twice ↵Ezio Melotti2011-07-141-1/+7
| | | | | | | | without failures.
* | Issue #12549: Correct test_platform to not fail when OS X returns 'x86_64'Ned Deily2011-07-131-1/+1
| | | | | | | | | | as the processor type on some Mac systems. Also fix NameError in fallback _mac_ver_gestalt function. And remove out-of-date URL in docs.
* | Issue #12149: Update the method cache after a type's dictionnary getsAntoine Pitrou2011-07-121-1/+18
| | | | | | | | | | | | | | | | | | cleared by the garbage collector. This fixes a segfault when an instance and its type get caught in a reference cycle, and the instance's deallocator calls one of the methods on the type (e.g. when subclassing IOBase). Diagnosis and patch by Davide Rizzo.
* | Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporaryAntoine Pitrou2011-07-091-0/+1
| | | | | | | | | | | | failure in name resolution. Should fix a buildbot failure.
* | Avoid failing in test_robotparser when mueblesmoraleda.com is flaky andAntoine Pitrou2011-07-081-2/+17
| | | | | | | | | | an overzealous DNS service (e.g. OpenDNS) redirects to a placeholder Web site.
* | Avoid failing in test_urllibnet.test_bad_address when some overzealousAntoine Pitrou2011-07-081-0/+8
| | | | | | | | | | DNS service (e.g. OpenDNS) resolves a non-existent domain name. The test is now skipped instead.
* | Issue #12440: When testing whether some bits in SSLContext.options can beAntoine Pitrou2011-07-081-1/+1
| | | | | | | | | | reset, check the version of the OpenSSL headers Python was compiled against, rather than the runtime version of the OpenSSL library.
* | Issue #12493: skip test_communicate_eintr() if signal.SIGALRM is missingVictor Stinner2011-07-051-0/+2
| |
* | Issue #12493: subprocess: communicate() handles EINTRVictor Stinner2011-07-051-0/+16
| | | | | | | | | | subprocess.Popen.communicate() now also handles EINTR errors if the process has only one pipe.
* | Issue #12497: Install test/data to prevent failures of the various codecmapsNed Deily2011-07-051-1/+1
| | | | | | | | tests.
* | Issue #12469: Run "wakeup" signal tests in subprocess to run the test in aVictor Stinner2011-07-041-37/+68
| | | | | | | | | | fresh process with only one thread and to not change signal handling of the parent process.
* | Issue #12429: Skip interrupted write tests on FreeBSD <= 7Victor Stinner2011-07-041-0/+2
| | | | | | | | On FreeBSD, the SIGALRM signal is sometimes received by the reader thread.
* | Issue #8716: Avoid crashes caused by Aqua Tk on OSX when attempting to runNed Deily2011-07-042-8/+8
| | | | | | | | | | test_tk or test_ttk_guionly under a username that is not currently logged in to the console windowserver (as may be the case under buildbot or ssh).
* | Fix closes issue12471 - wrong TypeError message when '%i' format spec was used.Senthil Kumaran2011-07-041-0/+1
| |
* | Fix closes issue issue12470 - check for utime for the skipUnless condition.Senthil Kumaran2011-07-041-1/+1
| |
* | Issue #12467: warnings: fix a race condition if a warning is emitted atVictor Stinner2011-07-041-0/+12
| | | | | | | | shutdown, if globals()['__file__'] is None.
* | Issue #12451: runpy: run_path() now opens the Python script in binary mode,Victor Stinner2011-07-031-0/+10
| | | | | | | | | | instead of text mode using the locale encoding, to support other encodings than UTF-8 (scripts using the coding cookie).
* | never retain a generator's caller's exception state on the generator after a ↵Benjamin Peterson2011-07-031-0/+12
| | | | | | | | | | | | | | yield/return This requires some trickery to properly save the exception state if the generator creates its own exception state.
* | merge headsBenjamin Peterson2011-07-032-1/+134
|\ \
| * | #12147: make send_message correctly handle Sender and Resent- headers.R David Murray2011-07-031-1/+110
| | | | | | | | | | | | | | | Original patch by Nicolas Estibals. My tweaks to the patch were mostly style/cosmetic, and adding more tests.
| * | Closes #12291: Fixed bug which was found when doing multiple loads from one ↵Vinay Sajip2011-07-021-0/+24
| | | | | | | | | | | | stream.
* | | restore a generator's caller's exception state both on yield and (last) returnBenjamin Peterson2011-07-031-0/+15
|/ / | | | | | | | | | | This prevents generator exception state from leaking into the caller. Closes #12475.
* | Merge issue #12352: Fix a deadlock in multiprocessing.Heap when a block isCharles-François Natali2011-07-021-0/+24
|\ \ | |/ | | | | freed by the garbage collector while the Heap lock is held.
| * Issue #12352: Fix a deadlock in multiprocessing.Heap when a block is freed byCharles-François Natali2011-07-021-0/+24
| | | | | | | | the garbage collector while the Heap lock is held.
* | #11873: another try at fixing the regex, courtesy of Victor StinnerR David Murray2011-07-011-1/+1
| |
* | #11873: fix test regex so it covers windows os.sep as well.R David Murray2011-07-011-1/+1
| |
* | Issue #12363: increase the timeout of siginterrupt() testsVictor Stinner2011-07-011-5/+5
| | | | | | | | | | | | | | | | Move also the "ready" trigger after the installation of the signal handler and the call to siginterrupt(). Use a timeout of 5 seconds instead of 3. Two seconds are supposed to be enough, but some of our buildbots are really slow (especially the FreeBSD 6 VM).
* | Issue #12363: improve siginterrupt() testsVictor Stinner2011-07-011-89/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport commits 968b9ff9a059 and aff0a7b0cb12 from the default branch to 3.2 branch. Extract of the changelog messages: "The previous tests used time.sleep() to synchronize two processes. If the host was too slow, the test could fail. The new tests only use one process, but they use a subprocess to: - have only one thread - have a timeout on the blocking read (select cannot be used in the test, select always fail with EINTR, the kernel doesn't restart it) - not touch signal handling of the parent process" and "Add a basic synchronization code between the child and the parent processes: the child writes "ready" to stdout." I replaced .communicate(timeout=3.0) by an explicit waiting loop using Popen.poll().
* | Issue #11870: Skip test_threading.test_2_join_in_forked_process() on platformsVictor Stinner2011-07-011-14/+11
| | | | | | | | | | | | | | with known OS bugs Share the list of platforms with known OS bugs with other tests. Patch written by Charles-François Natali.
* | test_os: remove now useless TemporaryFileTests testcaseVictor Stinner2011-07-011-111/+6
| | | | | | | | | | | | | | | | TemporaryFileTests has tests for os.tempnam() and os.tmpfile(), functions removed from Python 3. Move fdopen() tests to the FileTests testcase to test fdopen() on a file descriptor, not on a directory descriptor (which raises an error on Windows).
* | test_os: add TemporaryFileTests to the testcase listVictor Stinner2011-07-011-0/+1
| | | | | | | | The testcase was never executed, it's now fixed.
* | Issue #12407: Explicitly skip test_capi.EmbeddingTest under Windows.Antoine Pitrou2011-06-301-0/+3
| |
* | Issue #12451: Open files in binary mode in some tests when the text file is notVictor Stinner2011-06-305-18/+16
| | | | | | | | | | | | needed. Remove also an unused variable (blank) in test_threading.