summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* #21091: make is_attachment a method.R David Murray2014-09-201-5/+15
| | | | | | Since EmailMessage is a provisional API we can fix API bugs in a maintenance release, but I used a trick suggested by Serhiy to maintain backward compatibility with 3.4.0/1.
* #21079: is_attachment now looks only at the value, ignoring parameters.R David Murray2014-09-201-1/+2
|
* Issue #22247: Add NNTPError to nntplib.__all__.Berker Peksag2014-09-201-5/+12
|
* Issue #4180: The warnings registries are now reset when the filters are ↵Antoine Pitrou2014-09-181-2/+47
| | | | modified.
* asyncio, Tulip issue 206: In debug mode, keep the callback in theVictor Stinner2014-09-171-4/+5
| | | | representation of Handle and TimerHandle after cancel().
* Merge from 3.3Senthil Kumaran2014-09-171-0/+5
|\ | | | | | | Issue #22419: Limit the length of incoming HTTP request in wsgiref server to 65536 bytes.
| * Issue #22419: Limit the length of incoming HTTP request in wsgiref server to ↵Senthil Kumaran2014-09-171-0/+5
| | | | | | | | 65536 bytes.
* | Merge from 3.3Senthil Kumaran2014-09-171-0/+2
|\ \ | |/ | | | | Issue #22421 - Secure pydoc server run. Bind it to localhost instead of all interfaces.
| * Issue #22421 - Secure pydoc server run. Bind it to localhost instead of all ↵Senthil Kumaran2014-09-171-0/+2
| | | | | | | | interfaces.
* | Replace bad ftp URLs in test_urllib2netAntoine Pitrou2014-09-161-34/+34
| |
* | Lax cookie parsing in http.cookies could be a security issue when combinedAntoine Pitrou2014-09-161-0/+9
|\ \ | |/ | | | | | | | | with non-standard cookie handling in some Web browsers. Reported by Sergey Bobrov.
| * Lax cookie parsing in http.cookies could be a security issue when combinedAntoine Pitrou2014-09-161-0/+9
| | | | | | | | | | | | with non-standard cookie handling in some Web browsers. Reported by Sergey Bobrov.
* | Issue #22166: clear codec caches in test_codecsNick Coghlan2014-09-151-0/+14
| |
* | Restored re pickling test.Serhiy Storchaka2014-09-151-5/+9
| |
* | Use more appropriate asserts in re tests.Serhiy Storchaka2014-09-141-115/+115
| |
* | Fixed re tests incorrectly ported from 2.x to 3.x.Serhiy Storchaka2014-09-141-22/+27
| |
* | Issue #22386: fixed regression.Vinay Sajip2014-09-111-0/+4
| |
* | Issue #21951: Fixed a crash in Tkinter on AIX when called Tcl command withSerhiy Storchaka2014-09-111-1/+2
| | | | | | | | | | | | | | empty string or tuple argument. On some platforms Tcl memory allocator returns NULL when allocating zero-sized block of memory.
* | Issue #22226: Added private function _splitdict() in the Tkinter module.Serhiy Storchaka2014-09-061-1/+36
| | | | | | | | | | First letter no longer is stripped from the "status" key in the result of Treeview.heading().
* | Issue #19524: Fixed resource leak in the HTTP connection when an invalidSerhiy Storchaka2014-09-062-27/+61
| | | | | | | | response is received. Patch by Martin Panter.
* | Issue #22221: Add tests for compile() with source encoding cookie.Serhiy Storchaka2014-09-051-3/+20
| |
* | Issue #21440: test_zipfile: replace last direct calls to os.remove() withVictor Stinner2014-09-031-5/+5
| | | | | | | | support.unlink()
* | Issue #21440: Backport changeset 4ebf97299b18 to branch 3.4, useVictor Stinner2014-09-032-32/+30
| | | | | | | | support.rmtree() and support.unlink() in test_zipfile & test_tarfile
* | Issue #20957: test_smtpnet now uses support.transient_internet() to callVictor Stinner2014-09-031-2/+5
| | | | | | | | | | check_ssl_verifiy(), so only test_connect_using_sslcontext_verified() is skipped if smtp.gmail.com cannot be joined, not the whole file.
* | Issue #22332: test_multiprocessing_main_handling is now skipped if sem_openVictor Stinner2014-09-031-0/+3
| | | | | | | | implementation is broken (ex: skipped on FreeBSD 6.4).
* | Issue #22331: Skip test_interrupted_write_text() on FreeBSD older than 8.0Victor Stinner2014-09-031-0/+2
| |
* | Remove unused imports.Berker Peksag2014-09-011-2/+2
| |
* | Issue #19447: Suppress output of py_compile.compile().Berker Peksag2014-09-011-1/+2
| |
* | asyncio, Tulip issue 205: Fix a race condition in ↵Victor Stinner2014-08-311-22/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BaseSelectorEventLoop.sock_connect() There is a race condition in create_connection() used with wait_for() to have a timeout. sock_connect() registers the file descriptor of the socket to be notified of write event (if connect() raises BlockingIOError). When create_connection() is cancelled with a TimeoutError, sock_connect() coroutine gets the exception, but it doesn't unregister the file descriptor for write event. create_connection() gets the TimeoutError and closes the socket. If you call again create_connection(), the new socket will likely gets the same file descriptor, which is still registered in the selector. When sock_connect() calls add_writer(), it tries to modify the entry instead of creating a new one. This issue was originally reported in the Trollius project, but the bug comes from Tulip in fact (Trollius is based on Tulip): https://bitbucket.org/enovance/trollius/issue/15/after-timeouterror-on-wait_for This change fixes the race condition. It also makes sock_connect() more reliable (and portable) is sock.connect() raises an InterruptedError.
* | #22215: have the smtplib 'quit' command reset the state.R David Murray2014-08-301-0/+15
| | | | | | | | | | | | | | | | | | | | | | Without this reset, starttls would fail if a connect/starttls was done after a quit, because smtplib assumed the existing value of emspt_features was accurate, but it gets reset when starttls completes (and the new value does not contain the starttls capability, since tls is already started at that point). (There may be additional places where this lack of reset was an issue as well.) Patch by Milan Oberkirch.
* | asyncio, Tulip issue 201: Fix a race condition in wait_for()Victor Stinner2014-08-281-0/+15
| | | | | | | | | | | | Don't raise a TimeoutError if we reached the timeout and the future completed in the same iteration of the event loop. A side effect of the bug is that Queue.get() looses items.
* | Issue #22090: Fix '%' formatting for infinities and NaNs.Stefan Krah2014-08-261-0/+5
| |
* | asyncio, tulip issue 203: Add _FlowControlMixin.get_write_buffer_limits() methodVictor Stinner2014-08-251-0/+2
| |
* | asyncio: sync with TulipVictor Stinner2014-08-254-29/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PipeServer.close() now cancels the "accept pipe" future which cancels the overlapped operation. * Fix _SelectorTransport.__repr__() if the transport was closed * Fix debug log in BaseEventLoop.create_connection(): get the socket object from the transport because SSL transport closes the old socket and creates a new SSL socket object. Remove also the _SelectorSslTransport._rawsock attribute: it contained the closed socket (not very useful) and it was not used. * Issue #22063: socket operations (sock_recv, sock_sendall, sock_connect, sock_accept) of the proactor event loop don't raise an exception in debug mode if the socket are in blocking mode. Overlapped operations also work on blocking sockets. * Fix unit tests in debug mode: mock a non-blocking socket for socket operations which now raise an exception if the socket is blocking. * _fatal_error() method of _UnixReadPipeTransport and _UnixWritePipeTransport now log all exceptions in debug mode * Don't log expected errors in unit tests * Tulip issue 200: _WaitHandleFuture._unregister_wait() now catchs and logs exceptions. * Tulip issue 200: Log errors in debug mode instead of simply ignoring them.
* | allow test to work on implementations not using ref-counting (closes #22265)Benjamin Peterson2014-08-241-0/+1
| |
* | fix some test_weakref tests to not rely on ref-counting (closes #22267)Benjamin Peterson2014-08-241-0/+2
| |
* | Issue #22034: Got rid of misleading error message for bytearray arguments inSerhiy Storchaka2014-08-241-12/+8
| | | | | | | | posixpath.join().
* | Issue #22236: Tkinter tests now don't reuse default root window. New rootSerhiy Storchaka2014-08-241-8/+12
| | | | | | | | | | | | | | | | | | window is created for every test class. Fixed Tkinter images copying operations in NoDefaultRoot mode. Tcl command names generated for "after" callbacks now contains a name of original function.
* | Issue #19447: Use importlib.util.cache_from_source() instead of ``bad_coding ↵Berker Peksag2014-08-221-1/+2
| | | | | | | | | | | | + 'c'``. Thanks to Arfrever Frehtes Taifersar Arahesis.
* | Issue #19447: Add a test case to py_compile.compile() to make sureBerker Peksag2014-08-221-0/+4
| | | | | | | | | | | | it don't raise an exception if doraise is False. Patch by Bohuslav "Slavek" Kabrda.
* | Issue #22191: Fix warnings.__all__.Brett Cannon2014-08-221-0/+19
| | | | | | | | Thanks to Jon Poler for the patch.
* | Fix issue22245 - Fix urllib2_localnet test.Senthil Kumaran2014-08-221-1/+0
| | | | | | | | Do not aggresively close wfile in the do_GET method in the BasicAuthHandler.
* | Fix Issue #8797: Raise HTTPError on failed Basic Authentication immediately. ↵Senthil Kumaran2014-08-201-0/+83
| | | | | | | | Initial patch by Sam Bull.
* | Fixed typo.Serhiy Storchaka2014-08-191-2/+2
| |
* | Issue #15696: Add a __sizeof__ implementation for mmap objects on Windows.Serhiy Storchaka2014-08-191-1/+10
| |
* | Clean up test_user_command.Serhiy Storchaka2014-08-181-11/+14
| |
* | Issue #22165: Fixed test_undecodable_filename on Mac OS.Serhiy Storchaka2014-08-171-0/+7
| |
* | Issue #22165: Fixed test_undecodable_filename on non-UTF-8 locales.Serhiy Storchaka2014-08-171-2/+3
| |
* | Issue #22165: SimpleHTTPRequestHandler now supports undecodable file names.Serhiy Storchaka2014-08-171-0/+19
| |
* | backout changeset 3435c5865cfc due to buildbot failures. Ref #8797Senthil Kumaran2014-08-161-83/+0
| |