summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Issue #26309: Rewrite test in main thread and avoid race conditionMartin Panter2016-02-191-24/+21
|
* Issue #16915: Clarify that mode parameter of socket.makefile() does not acceptBerker Peksag2016-02-181-0/+14
| | | | the same values as open().
* Issue #26309: Shut down socketserver request if verify_request() is falseMartin Panter2016-02-181-0/+24
| | | | Patch by Aviv Palivoda.
* Issue #25887: Raise a RuntimeError when a coroutine is awaited more than once.Yury Selivanov2016-02-131-0/+141
|
* Issue #26325: Added test.support.check_no_resource_warning() to check thatSerhiy Storchaka2016-02-114-20/+29
| | | | no ResourceWarning is emitted.
* Issue #26304: Change "allows to <verb>" to "allows <verb>ing" or similarMartin Panter2016-02-104-4/+4
| | | | | The original form is incorrect grammar and feels awkward, even though the meaning is clear.
* Issue #25983: Added tests for multi-argument type().Serhiy Storchaka2016-02-081-0/+155
|
* Issue #25911: Restored support of bytes paths in os.walk() on Windows.Serhiy Storchaka2016-02-081-5/+17
|
* Issue #26045: Add UTF-8 suggestion to error in http.clientMartin Panter2016-02-091-1/+1
| | | | Based on patch by Guido van Rossum.
* Issue #26198: Make datetime error tests more lenient.Serhiy Storchaka2016-02-081-3/+3
|
* Issue #26198: Fixed error messages for some argument parsing errors.Serhiy Storchaka2016-02-071-1/+1
| | | | | Fixed the documented about buffer overflow error for "es#" and "et#" format units.
* Issue #12923: Reset FancyURLopener's redirect counter even on exceptionMartin Panter2016-02-041-6/+25
| | | | Based on patches by Brian Brazil and Daniel Rocco.
* Issue #25660: Fix a unittest and rlcompleter when readline isn't availableYury Selivanov2016-02-041-0/+2
|
* Issue #25945: Fixed bugs in functools.partial.Serhiy Storchaka2016-02-021-6/+87
| | | | | | | Fixed a crash when unpickle the functools.partial object with wrong state. Fixed a leak in failed functools.partial constructor. "args" and "keywords" attributes of functools.partial have now always types tuple and dict correspondingly.
* Issue #26194: Inserting into a full deque to raise an IndexErrorRaymond Hettinger2016-02-021-11/+12
|
* test_asyncio: fix test_timeout_time()Victor Stinner2016-02-011-1/+2
| | | | | Accept time delta up to 0.12 second, instead of 0.11, for the "AMD64 FreeBSD 9.x" buildbot slave.
* Issue #19587: Remove masked and redundant tests in test_bytesMartin Panter2016-02-023-63/+6
| | | | | | | | * test_contains() did not override anything * test_expandtabs/upper/lower() in FixedStringTest were masking usable tests in string_tests. These tests now get run for bytearray() and bytes(). * test_expandtabs/upper/lower() in buffer_tests were only run on bytearray() and are redundant with string_tests
* Issue #26173: Separate bad cert file tests and client rejection testMartin Panter2016-02-011-40/+54
| | | | | | | | | Test test_wrong_cert() runs a server that rejects the client's certificate, so ECONNRESET is reasonable in addition to SSLError. On the other hand, the other three tests don't even need to run a server because they are just testing the parsing of invalid certificate files. Also fix a ResourceWarning by closing the wrapped socket.
* Issue #23076: Path.glob() now raises a ValueError if it's called with anBerker Peksag2016-01-301-0/+5
| | | | | | invalid pattern. Patch by Thomas Nyberg.
* Issue #4806: Avoid masking original TypeError in call with * unpackingMartin Panter2016-01-311-5/+44
| | | | Based on patch by Hagen Fürstenau and Daniel Urban.
* Issue #26173: Fix test_ssl confusion with non-existing cert and wrongcert.pemMartin Panter2016-01-302-14/+43
| | | | | | Testing for a non-existing certificate file is already done in test_errors(). Copy wrongcert.pem from Python 2 and use it to test the behaviour with a mismatched certificate.
* Issue #26202: copy.deepcopy() now correctly copies range() objects withSerhiy Storchaka2016-01-281-1/+12
| | | | non-atomic attributes.
* Merge headsSerhiy Storchaka2016-01-282-5/+20
|\
| * Backport fixes on test_eintrVictor Stinner2016-01-281-5/+17
| | | | | | | | | | | | | | * Issue #25234: Skip test_eintr.test_open() under OS X to avoid hanging * Issue #25868: Try to make test_eintr.test_sigwaitinfo() more reliable especially on slow buildbots. Use a pipe to synchronize the parent and the child processes.
| * Issue #24705: Add a test case for ef84d21f5292Berker Peksag2016-01-281-0/+3
| |
* | Issue #26198: Added tests for "es", "et", "es#", "et#" and "C" format unitsSerhiy Storchaka2016-01-281-42/+135
|/ | | | of PyArg_Parse*() functions.
* Issue #26194: Fix undefined behavior for deque.insert() when len(d) == maxlenRaymond Hettinger2016-01-271-0/+14
|
* code_richcompare() now uses the constants typesVictor Stinner2016-01-221-0/+82
| | | | | | | | | Issue #25843: When compiling code, don't merge constants if they are equal but have a different types. For example, "f1, f2 = lambda: 1, lambda: 1.0" is now correctly compiled to two different functions: f1() returns 1 (int) and f2() returns 1.0 (int), even if 1 and 1.0 are equal. Add a new _PyCode_ConstantKey() private function.
* Issue #26147: xmlrpc now works with strings not encodable with usedSerhiy Storchaka2016-01-201-6/+24
| | | | non-UTF-8 encoding.
* Issue #25935: Garbage collector now breaks reference loops with OrderedDict.Serhiy Storchaka2016-01-191-0/+13
|
* Fix BytecodeTestCase.assertNotInBytecode()Victor Stinner2016-01-191-2/+2
| | | | | Issue #11816: Fix bytecode_helper to handle correctly errors. Don't use unassigned variables.
* set tp_new from the class in the hierarchy that actually owns the descriptor ↵Benjamin Peterson2016-01-191-0/+8
| | | | | | (closes #25731) Debugging by Eryk Sun.
* Issue #25859: Reimplement NNTP test_starttls() using local serverMartin Panter2016-01-191-18/+64
| | | | | | | The previous test relied on a remote server, which currently seems to be shutting the connection down once TLS has been set up, causing an EOFError. Now the test is implemented using a minimal NNTP server running in a background thread.
* Issue #25366: Skip test_with_pip when threading module is not availableBerker Peksag2016-01-191-0/+7
| | | | | Some dependencies of pip import threading module unconditionally so we need to skip the test to make buildbots happy.
* Added exceptins for testing non-reversible import mapping for Issue #26013.Serhiy Storchaka2016-01-181-0/+2
|
* Issue #9006: Added tests for XML RPC with non-UTF-8 encoding.Serhiy Storchaka2016-01-181-3/+53
|
* Issue #14771: Redirect GDB's stdin to avoid messing the terminal settingsMartin Panter2016-01-161-0/+3
| | | | | | | Otherwise, GDB seems to affect the terminal's foreground process group, interfering with test_ioctl, which does not expect the foreground process to change during the test. This change also solves the problem of the tests being stopped in the shell if test_gdb is run twice in parallel.
* Make the error message regex more lenient so that it matches bothGregory P. Smith2016-01-161-2/+2
|\ | | | | | | | | "certificate verify failed " and "CERTIFICATE_VERIFY_FAILED " as some SSL libraries use different text than OpenSSL.
| * Make the error message regex more lenient so that it matches bothGregory P. Smith2016-01-161-2/+2
| | | | | | | | | | "certificate verify failed " and "CERTIFICATE_VERIFY_FAILED " as some SSL libraries use different text than OpenSSL.
* | Issue #17633: Improve support for namespace packages with zipimport.Brett Cannon2016-01-151-32/+216
| | | | | | | | | | | | | | | | | | Previously zipimport mistakenly limited namespace support to only the top-level of the zipfile when it should have supported an arbitrary depth. Thanks to Phil Connel for the bug report and initial patch and Mike Romberg for the final patch.
* | Issue #25940: Merge ETIMEDOUT fix from 3.4 into 3.5Martin Panter2016-01-151-1/+1
|\ \ | |/
| * Issue #25940: Merge ETIMEDOUT fix from 3.3 into 3.4Martin Panter2016-01-151-1/+1
| |\
| | * Issue #25940: Merge ETIMEDOUT fix from 3.2 into 3.3Martin Panter2016-01-151-1/+1
| | |\
| | | * Issue #25940: On Windows, connecting to port 444 returns ETIMEDOUTMartin Panter2016-01-151-1/+3
| | | |
* | | | Issue #25940: Update new SSL tests for self-signed.pythontest.netMartin Panter2016-01-141-13/+14
| | | | | | | | | | | | | | | | | | | | Removed SSL_ERROR_SYSCALL checking from ssl_io_loop() so that the loop can terminate when unwrap() raises that error.
* | | | Issue #25940: Merge self-signed.pythontest.net testing from 3.4 into 3.5Martin Panter2016-01-145-98/+94
|\ \ \ \ | |/ / /
| * | | Issue #25940: Update new SSL tests for self-signed.pythontest.netMartin Panter2016-01-141-12/+12
| | | |
| * | | Issue #25940: Merge self-signed.pythontest.net testing from 3.3 into 3.4Martin Panter2016-01-145-86/+82
| |\ \ \ | | |/ /
| | * | Issue #25940: Merge self-signed.pythontest.net testing from 3.2 into 3.3Martin Panter2016-01-146-89/+104
| | |\ \ | | | |/
| | | * Issue #25940: Use self-signed.pythontest.net in SSL testsMartin Panter2016-01-145-96/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is instead of svn.python.org, whose certificate recently expired, and whose new certificate uses a different root certificate. The certificate used at the pythontest server was modifed to set the "basic constraints" CA flag. This flag seems to be required for test_get_ca_certs_ capath() to work (in Python 3.4+). Added the new self-signed certificate to capath with the following commands: cp Lib/test/{selfsigned_pythontestdotnet.pem,capath/} c_rehash -v Lib/test/capath/ c_rehash -v -old Lib/test/capath/ # Note the generated file names cp Lib/test/capath/{selfsigned_pythontestdotnet.pem,0e4015b9.0} mv Lib/test/capath/{selfsigned_pythontestdotnet.pem,ce7b8643.0} The new server responds with "No route to host" when connecting to port 444.