Benjamin Peterson
e22735036b
merge 3.4
2014-09-20 11:53:27 -04:00
Benjamin Peterson
9833fcbca3
use patch context manager instead of decorator because the decorator 'leaks' metadata onto the function
2014-09-20 11:53:12 -04:00
Berker Peksag
bdfeb0387d
Issue #22247 : Add NNTPError to nntplib.__all__.
2014-09-20 08:54:32 +03:00
Berker Peksag
96756b6a27
Issue #22247 : Add NNTPError to nntplib.__all__.
2014-09-20 08:53:05 +03:00
Terry Jan Reedy
f633367231
Merge with 3.4
2014-09-19 22:54:27 -04:00
Terry Jan Reedy
b6e1778cbd
Update Idle's online doc url.
2014-09-19 22:54:15 -04:00
Terry Jan Reedy
5ef46ba63a
Issue #22420 : Merge with 3.4
2014-09-19 22:39:09 -04:00
Terry Jan Reedy
81b062f63a
Issue #22420 : Avoid 'write to None' crashes by using print instead.
...
Change a couple of existing prints. Original patch by Serhiy Storchaka.
2014-09-19 22:38:41 -04:00
Senthil Kumaran
a5c85b3f5f
Issue #22366 : urllib.request.urlopen will accept a context object (SSLContext)
...
as an argument which will then used be for HTTPS connection.
Patch by Alex Gaynor.
2014-09-19 15:23:30 +08:00
Berker Peksag
3715da5c97
Issue #21391 : Use os.path.abspath in the shutil module.
2014-09-18 05:11:15 +03:00
Antoine Pitrou
e7811fca5e
Closes #11471 : avoid generating a JUMP_FORWARD instruction at the end of an if-block if there is no else-clause.
...
Original patch by Eugene Toder.
2014-09-18 03:06:50 +02:00
Antoine Pitrou
87538e7bc4
Issue #4180 : The warnings registries are now reset when the filters are modified.
2014-09-18 02:42:05 +02:00
Antoine Pitrou
cb0a006fd1
Issue #4180 : The warnings registries are now reset when the filters are modified.
2014-09-18 02:40:46 +02:00
Victor Stinner
605a64b436
(Merge 3.4) asyncio, Tulip issue 206: In debug mode, keep the callback in the
...
representation of Handle and TimerHandle after cancel().
2014-09-17 23:24:39 +02:00
Victor Stinner
1b38bc65dd
asyncio, Tulip issue 206: In debug mode, keep the callback in the
...
representation of Handle and TimerHandle after cancel().
2014-09-17 23:24:13 +02:00
Senthil Kumaran
dc41440401
Merge from 3.4
...
Issue #22419 : Limit the length of incoming HTTP request in wsgiref server to 65536 bytes.
2014-09-17 16:32:46 +08:00
Senthil Kumaran
86c9e1877c
Merge from 3.3
...
Issue #22419 : Limit the length of incoming HTTP request in wsgiref server to 65536 bytes.
2014-09-17 16:31:47 +08:00
Senthil Kumaran
e025b52db0
Issue #22419 : Limit the length of incoming HTTP request in wsgiref server to 65536 bytes.
2014-09-17 16:29:29 +08:00
Senthil Kumaran
810dc9bc81
Merge from 3.4
...
Issue #22421 - Secure pydoc server run. Bind it to localhost instead of all interfaces.
2014-09-17 13:19:34 +08:00
Senthil Kumaran
aa72b1b448
Merge from 3.3
...
Issue #22421 - Secure pydoc server run. Bind it to localhost instead of all interfaces.
2014-09-17 13:19:01 +08:00
Senthil Kumaran
2a42a0bff3
Issue #22421 - Secure pydoc server run. Bind it to localhost instead of all interfaces.
2014-09-17 13:17:58 +08:00
Ethan Furman
d9925a18ec
Close issue21706: add 'start' parameter to functional API
2014-09-16 20:35:55 -07:00
Ethan Furman
6a8e0fbcfb
consistently use _name_ and _value_; patch from Kiss Gyorgy
2014-09-16 19:02:30 -07:00
Ethan Furman
0081f23a08
consistently use _name_ and _value_; patch from Kiss Gyorgy
2014-09-16 17:31:23 -07:00
Antoine Pitrou
6cfa46e45f
Replace bad ftp URLs in test_urllib2net
2014-09-17 00:40:13 +02:00
Antoine Pitrou
bc2c4c9990
Replace bad ftp URLs in test_urllib2net
2014-09-17 00:39:21 +02:00
Antoine Pitrou
0d54887326
Lax cookie parsing in http.cookies could be a security issue when combined
...
with non-standard cookie handling in some Web browsers.
Reported by Sergey Bobrov.
2014-09-17 00:27:26 +02:00
Antoine Pitrou
637e4544af
Lax cookie parsing in http.cookies could be a security issue when combined
...
with non-standard cookie handling in some Web browsers.
Reported by Sergey Bobrov.
2014-09-17 00:25:57 +02:00
Antoine Pitrou
7d0b8f95e7
Lax cookie parsing in http.cookies could be a security issue when combined
...
with non-standard cookie handling in some Web browsers.
Reported by Sergey Bobrov.
2014-09-17 00:23:55 +02:00
Kushal Das
a37b958d65
Closes #21270 : We now override tuple methods in mock.call objects.
2014-09-16 18:33:37 +05:30
Nick Coghlan
a0f33759fa
Merge fix for issue #22166 from 3.4
2014-09-15 23:55:16 +12:00
Nick Coghlan
8fad1676a2
Issue #22166 : clear codec caches in test_codecs
2014-09-15 23:50:44 +12:00
Łukasz Langa
0b894b40db
Closes #18159 : ConfigParser getters not available on SectionProxy
2014-09-15 02:10:01 -07:00
Łukasz Langa
dfdd2f7ef8
Closes #18159 : ConfigParser getters not available on SectionProxy
2014-09-15 02:08:41 -07:00
Serhiy Storchaka
884d5284f7
Restored re pickling test.
2014-09-15 11:33:55 +03:00
Serhiy Storchaka
b85a97600a
Restored re pickling test.
2014-09-15 11:33:19 +03:00
Vinay Sajip
02a8f9e9ac
Closes #20537 : logging methods now accept an exception instance as well as a Boolean value or exception tuple. Thanks to Yury Selivanov for the patch.
2014-09-14 21:29:11 +01:00
Serhiy Storchaka
4ff91eb5e3
Issue #22384 : An exception in Tkinter callback no longer crashes the program
...
when it is run with pythonw.exe.
Documented that Tk.report_callback_exception() is purposed to be overriden in
applications.
2014-09-14 21:18:31 +03:00
Serhiy Storchaka
9502487781
Issue #22384 : An exception in Tkinter callback no longer crashes the program
...
when it is run with pythonw.exe.
Documented that Tk.report_callback_exception() is purposed to be overriden in
applications.
2014-09-14 21:17:32 +03:00
Serhiy Storchaka
f42cbff27e
Use more appropriate asserts in re tests.
2014-09-14 16:21:27 +03:00
Serhiy Storchaka
d9cf65f00e
Use more appropriate asserts in re tests.
2014-09-14 16:20:20 +03:00
Serhiy Storchaka
d1b440a377
Fixed re tests incorrectly ported from 2.x to 3.x.
2014-09-14 15:57:01 +03:00
Serhiy Storchaka
a25875cfd0
Fixed re tests incorrectly ported from 2.x to 3.x.
2014-09-14 15:56:27 +03:00
Ned Deily
2ebdb2c911
Issue #22168 : Prevent turtle AttributeError with non-default Canvas on OS X.
2014-09-13 23:40:27 -07:00
Ned Deily
152dfd1dac
Issue #22168 : Prevent turtle AttributeError with non-default Canvas on OS X.
2014-09-13 23:39:16 -07:00
Yury Selivanov
08d4a4f488
inspect.Signature: Fix discrepancy between __eq__ and __hash__.
...
Issue #20334 . Thanks to Antony Lee for bug report & initial patch.
2014-09-12 15:48:02 -04:00
Brett Cannon
f1a8df0ac9
Issue #16104 : Allow compileall to do parallel bytecode compilation.
...
Both compileall.compile_dir() and the CLI for compileall now allow for
specifying how many workers to use (or 0 to use all CPUs).
Thanks to Claudiu Popa for the patch.
2014-09-12 10:39:48 -04:00
Vinay Sajip
a56411e5d4
Closes #22386 : merged fix from 3.4.
2014-09-11 23:08:48 +01:00
Vinay Sajip
d1d4fbff63
Issue #22386 : fixed regression.
2014-09-11 23:06:09 +01:00
Serhiy Storchaka
a1b16bab2f
Issue #13968 : Fixed newly added recursive glob test.
...
It was failed when run with non-empty current directory.
2014-09-11 14:33:02 +03:00
Serhiy Storchaka
2c16df269a
Issue #21147 : sqlite3 now raises an exception if the request contains a null
...
character instead of truncate it. Based on patch by Victor Stinner.
2014-09-11 13:30:48 +03:00
Serhiy Storchaka
42d67af87f
Issue #21147 : sqlite3 now raises an exception if the request contains a null
...
character instead of truncate it. Based on patch by Victor Stinner.
2014-09-11 13:29:05 +03:00
Serhiy Storchaka
c2edcdd194
Issue #13968 : The glob module now supports recursive search in
...
subdirectories using the "**" pattern.
2014-09-11 12:17:37 +03:00
Serhiy Storchaka
d5fd6188e2
Issue #21951 : Fixed a crash in Tkinter on AIX when called Tcl command with
...
empty string or tuple argument.
On some platforms Tcl memory allocator returns NULL when allocating zero-sized
block of memory.
2014-09-11 10:58:02 +03:00
Serhiy Storchaka
abf68ce164
Issue #21951 : Fixed a crash in Tkinter on AIX when called Tcl command with
...
empty string or tuple argument.
On some platforms Tcl memory allocator returns NULL when allocating zero-sized
block of memory.
2014-09-11 10:57:13 +03:00
Serhiy Storchaka
dd6507eb86
Issue #22369 : Change "context manager protocol" to "context management protocol".
2014-09-10 23:45:42 +03:00
Serhiy Storchaka
148679982f
Issue #22369 : Change "context manager protocol" to "context management protocol".
2014-09-10 23:43:41 +03:00
Stefan Krah
9f69b86756
Whitespace.
2014-09-10 18:00:46 +02:00
Stefan Krah
b578f8a1ef
Issue #19232 : Speed up decimal import. Additionally, since _decimal is
...
self-contained, this change facilitates maintenance and the Python version
can be easily imported for experimentation.
2014-09-10 17:58:15 +02:00
Stefan Krah
082a9b1274
Issue #22284 : Merge 3.4
2014-09-09 19:57:59 +02:00
Stefan Krah
964feabd79
Issue #22284 : Update decimal.__all__
2014-09-09 19:56:56 +02:00
Serhiy Storchaka
38684c3663
imaplib.IMAP4 now supports the context manager protocol.
...
Original patch by Tarek Ziadé.
2014-09-09 19:07:49 +03:00
Barry Warsaw
bb1e3f1ebe
A few tweaks for issue16662 based on feedback from Robert Collins.
2014-09-08 17:29:02 -04:00
Barry Warsaw
d78742a260
- Issue #16662 : load_tests() is now unconditionally run when it is present in
...
a package's __init__.py. TestLoader.loadTestsFromModule() still accepts
use_load_tests, but it is deprecated and ignored. A new keyword-only
attribute `pattern` is added and documented. Patch given by Robert Collins,
tweaked by Barry Warsaw.
2014-09-08 14:21:37 -04:00
Benjamin Peterson
238f5aa6a5
merge 3.4 ( #22349 )
2014-09-06 17:24:35 -04:00
Benjamin Peterson
df0eb95b57
remove various dead version checks ( closes #22349 )
...
Patch from Thomas Kluyver.
2014-09-06 17:24:12 -04:00
Serhiy Storchaka
87a2803eb4
Issue #22226 : Added private function _splitdict() in the Tkinter module.
...
First letter no longer is stripped from the "status" key in
the result of Treeview.heading().
2014-09-06 22:49:07 +03:00
Serhiy Storchaka
8f0a1d0f28
Issue #22226 : Added private function _splitdict() in the Tkinter module.
...
First letter no longer is stripped from the "status" key in
the result of Treeview.heading().
2014-09-06 22:47:58 +03:00
Serhiy Storchaka
c70386ec16
Issue #22131 : Fixed a bug in handling an error occured during reading from
...
a pipe in _ipconfig_getnode().
2014-09-06 22:17:24 +03:00
Serhiy Storchaka
fa9be4f6a8
Issue #22131 : Modernized the code of the uuid module.
...
Optimized bytes and bytes_le properties of UUID and UUID constructor with
bytes_le argument.
Fixed a bug in handling an error occured during reading from a pipe in
_ipconfig_getnode().
2014-09-06 22:14:04 +03:00
Serhiy Storchaka
91453026ff
Issue #19524 : Fixed resource leak in the HTTP connection when an invalid
...
response is received. Patch by Martin Panter.
2014-09-06 21:43:49 +03:00
Serhiy Storchaka
f54c350160
Issue #19524 : Fixed resource leak in the HTTP connection when an invalid
...
response is received. Patch by Martin Panter.
2014-09-06 21:41:39 +03:00
Serhiy Storchaka
d8a1447c99
Issue #22215 : Now ValueError is raised instead of TypeError when str or bytes
...
argument contains not permitted null character or byte.
2014-09-06 20:07:17 +03:00
Serhiy Storchaka
0e395240cb
Issue #22221 : Add tests for compile() with source encoding cookie.
2014-09-05 11:01:43 +03:00
Serhiy Storchaka
607cb9cf99
Issue #22221 : Add tests for compile() with source encoding cookie.
2014-09-05 11:00:56 +03:00
Terry Jan Reedy
2ee44f7f55
Merge with 3.4
2014-09-04 21:00:52 -04:00
Terry Jan Reedy
d43ffc9aba
Issue #21933 : Make Control-Mousewhell only change font size and not also scroll.
...
Original patch by Serhiy Storchaka.
2014-09-04 20:59:41 -04:00
Antoine Pitrou
47e40429fb
Issue #20421 : Add a .version() method to SSL sockets exposing the actual protocol version in use.
2014-09-04 21:00:10 +02:00
Łukasz Langa
53c87d1be2
Merge fix for #19546 : configparser exceptions leak implementation details
2014-09-04 01:42:29 -07:00
Łukasz Langa
949053bff2
Fix #19546 : onfigparser exceptions expose implementation details. Patch by Claudiu Popa.
2014-09-04 01:36:33 -07:00
Victor Stinner
ece38d9497
Issue #22334 : Add debug traces to test_tcl
2014-09-04 09:53:16 +02:00
Victor Stinner
b39b918baa
Issue #22333 : Add debug traces to test_threaded_import
2014-09-04 09:38:38 +02:00
Terry Jan Reedy
2fd145a3e9
Merge with 3.4
2014-09-03 19:29:31 -04:00
Terry Jan Reedy
70349141ee
Issue #22051 : remove unneeded reload that allowed bad code.
2014-09-03 19:29:17 -04:00
Victor Stinner
8231d55cd4
Fix timeout in test.fork_wait
2014-09-04 01:02:17 +02:00
Victor Stinner
150b06fa19
(Merge 3.4) Issue #21440 : test_zipfile: replace last direct calls to
...
os.remove() with support.unlink()
2014-09-04 00:51:25 +02:00
Victor Stinner
88b215e20f
Issue #21440 : test_zipfile: replace last direct calls to os.remove() with
...
support.unlink()
2014-09-04 00:51:09 +02:00
Victor Stinner
57004c696a
Issue #21440 : Backport changeset 4ebf97299b18 to branch 3.4, use
...
support.rmtree() and support.unlink() in test_zipfile & test_tarfile
2014-09-04 00:49:01 +02:00
Victor Stinner
cde4517112
(Merge 3.4) Issue #20957 : test_smtpnet now uses support.transient_internet() to
...
call check_ssl_verifiy(), so only test_connect_using_sslcontext_verified() is
skipped if smtp.gmail.com cannot be joined, not the whole file.
2014-09-04 00:36:09 +02:00
Victor Stinner
19c899c1b1
Issue #20957 : test_smtpnet now uses support.transient_internet() to call
...
check_ssl_verifiy(), so only test_connect_using_sslcontext_verified() is
skipped if smtp.gmail.com cannot be joined, not the whole file.
2014-09-04 00:35:43 +02:00
Victor Stinner
e96c83bde1
(Merge 3.4) Issue #22332 : test_multiprocessing_main_handling is now skipped if
...
sem_open implementation is broken (ex: skipped on FreeBSD 6.4).
2014-09-03 23:48:37 +02:00
Victor Stinner
2bb8a08159
Issue #22332 : test_multiprocessing_main_handling is now skipped if sem_open
...
implementation is broken (ex: skipped on FreeBSD 6.4).
2014-09-03 23:48:08 +02:00
Victor Stinner
a6b6bba5ed
(Merge 3.4) Issue #22331 : Skip test_interrupted_write_text() on FreeBSD older
...
than 8.0
2014-09-03 23:33:43 +02:00
Victor Stinner
6ab728612d
Issue #22331 : Skip test_interrupted_write_text() on FreeBSD older than 8.0
2014-09-03 23:32:28 +02:00
Terry Jan Reedy
a4cc528752
Issue #21933 : Merge with 3.4
2014-09-03 16:18:34 -04:00
Terry Jan Reedy
c6a1c02cce
Issue #21933 : Users can now change the font size for example code.
...
Original patch by Lita Cho.
2014-09-03 16:17:41 -04:00
Victor Stinner
ae58649721
Issue #22043 : time.monotonic() is now always available
...
threading.Lock.acquire(), threading.RLock.acquire() and socket operations now
use a monotonic clock, instead of the system clock, when a timeout is used.
2014-09-02 23:18:25 +02:00
Berker Peksag
a42ad6bf84
Remove unused imports.
2014-09-01 12:33:12 +03:00
Berker Peksag
a7614d08bf
Issue #19447 : Suppress output of py_compile.compile().
2014-09-01 12:29:53 +03:00
Jason R. Coombs
311321edc1
#22315 : Use advertised API for OSError
2014-08-31 17:42:20 -04:00
Jason R. Coombs
d28c5f00ef
#22315 : Use an existent directory for 'src' to trigger appropriate behavior.
2014-08-31 17:51:22 -04:00
Jason R. Coombs
47f44c9309
#22315 : Provide an actual directory during test invocation.
2014-08-31 17:37:35 -04:00
Jason R. Coombs
e572ce3fb5
#22315 : Use technique outlined in test_file_util
2014-08-31 17:31:32 -04:00
Jason R. Coombs
4b02e7041c
#22315 : Add test to capture the failure.
2014-08-31 15:02:42 -04:00
Jason R. Coombs
1be2e82c57
Correct indent
2014-08-31 15:00:47 -04:00
Jason R. Coombs
b4efbe8a58
Remove unused import
2014-08-31 13:43:02 -04:00
Guido van Rossum
cfd4661e78
Closes #21527 : Add default number of workers to ThreadPoolExecutor. (Claudiu Popa.)
2014-09-02 10:39:18 -07:00
Berker Peksag
9425c05bab
Remove unused imports.
2014-09-01 12:33:41 +03:00
Berker Peksag
c85b7d3cd2
Issue #19447 : Suppress output of py_compile.compile().
2014-09-01 12:30:17 +03:00
Jason R. Coombs
71a8eed615
Merge with 3.4; Closes #22315
2014-08-31 18:02:18 -04:00
Benjamin Peterson
c49a6aa1f0
merge 3.4
2014-08-31 17:22:27 -04:00
Victor Stinner
de993bd9b6
(Merge 3.4) asyncio, Tulip issue 205: Fix a race condition in
...
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.
2014-08-31 15:08:21 +02:00
Victor Stinner
d5aeccf976
asyncio, Tulip issue 205: Fix a race condition in 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.
2014-08-31 15:07:57 +02:00
R David Murray
b10be15508
Merge #22215 : have the smtplib 'quit' command reset the state.
2014-08-30 16:55:45 -04:00
R David Murray
0cff49fcf9
#22215 : have the smtplib 'quit' command reset the state.
...
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.
2014-08-30 16:51:59 -04:00
Antoine Pitrou
5ce8f35931
Issue #22098 : ctypes' BigEndianStructure and LittleEndianStructure now define an empty __slots__ so that subclasses don't always get an instance dict.
...
Patch by Claudiu Popa.
2014-08-30 00:37:18 +02:00
Antoine Pitrou
fa9211b11d
Issue #22185 : Fix an occasional RuntimeError in threading.Condition.wait() caused by mutation of the waiters queue without holding the lock.
...
Patch by Doug Zongker.
2014-08-29 23:27:33 +02:00
Antoine Pitrou
a64b92edd3
Issue #22185 : Fix an occasional RuntimeError in threading.Condition.wait() caused by mutation of the waiters queue without holding the lock.
...
Patch by Doug Zongker.
2014-08-29 23:26:36 +02:00
Berker Peksag
0dc10e0d1c
Issue #22182 : Use e.args to unpack exceptions correctly in distutils.file_util.move_file.
...
Patch by Claudiu Popa.
2014-08-29 07:09:25 +03:00
Berker Peksag
6685883c02
Issue #22182 : Use e.args to unpack exceptions correctly in distutils.file_util.move_file.
...
Patch by Claudiu Popa.
2014-08-29 07:07:35 +03:00
Victor Stinner
e6128a4a80
(Merge 3.4) asyncio, Tulip issue 201: Fix a race condition in wait_for()
...
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.
2014-08-28 11:19:46 +02:00
Victor Stinner
59e0802301
asyncio, Tulip issue 201: Fix a race condition in wait_for()
...
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.
2014-08-28 11:19:25 +02:00
Gregory P. Smith
a232613679
The webbrowser module now uses subprocess's start_new_session=True rather
...
than a potentially risky preexec_fn=os.setsid call.
2014-08-27 09:41:05 -07:00
Gregory P. Smith
feac3980ce
The webbrowser module now uses subprocess's start_new_session=True rather
...
than a potentially risky preexec_fn=os.setsid call.
2014-08-27 09:34:38 -07:00
Victor Stinner
7cea44d3cf
Issue #22042 : Fix test_signal on Windows
2014-08-27 14:02:36 +02:00
Victor Stinner
3822760f2d
Issue #22042 : signal.set_wakeup_fd(fd) now raises an exception if the file
...
descriptor is in blocking mode.
2014-08-27 12:59:44 +02:00
Terry Jan Reedy
86cc17e69e
Merge with 3.4
2014-08-27 01:58:57 -04:00
Terry Jan Reedy
2ced87f3e6
Issue #22065 : Remove the now unsed configGUI menu parameter and arguments.
2014-08-27 01:58:40 -04:00
Terry Jan Reedy
dfb110d8a3
Merge with 3.4
2014-08-27 01:44:13 -04:00
Terry Jan Reedy
8450c53315
Issue #22065 : Menus, unlike Menubottons, do not have a state option.
...
Since a new demo can now be loaded while one is running,
adjust loadfile to do the same cleanup as stopIt.
2014-08-27 01:43:50 -04:00
Stefan Krah
fc452518e6
Merge 3.4.
2014-08-26 21:32:26 +02:00
Stefan Krah
cf26115651
Introduce and check for MPD_VERSION_HEX for precise management of builds
...
with an external libmpdec.
2014-08-26 21:31:47 +02:00
Stefan Krah
9ea83cff47
Merge 3.4.
2014-08-26 20:47:32 +02:00
Stefan Krah
298131a448
Issue #22090 : Fix '%' formatting for infinities and NaNs.
2014-08-26 20:46:49 +02:00
Victor Stinner
54c69c2fe3
(Merge 3.4) asyncio, tulip issue 203: Add _FlowControlMixin.get_write_buffer_limits()
...
method
2014-08-26 00:23:23 +02:00
Victor Stinner
52bb949fd3
asyncio, tulip issue 203: Add _FlowControlMixin.get_write_buffer_limits() method
2014-08-26 00:22:28 +02:00
Victor Stinner
83b9ea4942
(Merge 3.4) asyncio: sync with Tulip
...
* 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.
2014-08-25 23:22:54 +02:00
Victor Stinner
b261475a48
asyncio: sync with Tulip
...
* 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.
2014-08-25 23:20:52 +02:00
Benjamin Peterson
ca18be6db2
merge 3.4 ( #22265 )
2014-08-24 18:08:22 -05:00
Benjamin Peterson
8e16351545
allow test to work on implementations not using ref-counting ( closes #22265 )
2014-08-24 18:07:28 -05:00
Benjamin Peterson
d475731c54
merge 3.4 ( #22267 )
2014-08-24 18:04:25 -05:00
Benjamin Peterson
18bb702182
fix some test_weakref tests to not rely on ref-counting ( closes #22267 )
2014-08-24 18:02:15 -05:00
Antoine Pitrou
cdcafb78b2
Issue #16808 : inspect.stack() now returns a named tuple instead of a tuple.
...
Patch by Daniel Shahaf.
2014-08-24 10:50:28 -04:00
Serhiy Storchaka
1fa36268cf
Issue #22034 : Improve handling of wrong argument types in posixpath.join().
2014-08-24 12:23:36 +03:00
Serhiy Storchaka
549c1972f2
Issue #22034 : Got rid of misleading error message for bytearray arguments in
...
posixpath.join().
2014-08-24 12:18:09 +03:00
Serhiy Storchaka
66106626ed
Issue #22236 : Tkinter tests now don't reuse default root window. New root
...
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.
2014-08-24 09:10:58 +03:00
Serhiy Storchaka
d00aff2f62
Issue #22236 : Tkinter tests now don't reuse default root window. New root
...
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.
2014-08-24 09:07:47 +03:00
Terry Jan Reedy
133250c5b2
Merge heads.
2014-08-23 18:23:50 -04:00
Terry Jan Reedy
130f303ba5
Merge heads.
2014-08-23 18:22:43 -04:00
Antoine Pitrou
ef3b9ed0ac
Issue #2527 : Add a *globals* argument to timeit functions, in order to override the globals namespace in which the timed code is executed.
...
Patch by Ben Roberts.
2014-08-22 23:13:50 -04:00
Berker Peksag
04bb443eb6
Issue #19447 : Use importlib.util.cache_from_source() instead of ``bad_coding + 'c'``.
...
Thanks to Arfrever Frehtes Taifersar Arahesis.
2014-08-22 20:52:37 +03:00
Berker Peksag
0242f79051
Issue #19447 : Use importlib.util.cache_from_source() instead of ``bad_coding + 'c'``.
...
Thanks to Arfrever Frehtes Taifersar Arahesis.
2014-08-22 20:52:15 +03:00
Berker Peksag
5296db908a
Issue #19447 : Add a test case to py_compile.compile() to make sure
...
it don't raise an exception if doraise is False.
Patch by Bohuslav "Slavek" Kabrda.
2014-08-22 20:18:12 +03:00
Berker Peksag
31f8a677a4
Issue #19447 : Add a test case to py_compile.compile() to make sure
...
it don't raise an exception if doraise is False.
Patch by Bohuslav "Slavek" Kabrda.
2014-08-22 20:17:32 +03:00
Brett Cannon
145759c892
Merge for issue #22191 fix
2014-08-22 10:46:07 -04:00
Brett Cannon
14ad5319d9
Issue #22191 : Fix warnings.__all__.
...
Thanks to Jon Poler for the patch.
2014-08-22 10:44:47 -04:00
Brett Cannon
7c08b19f86
Issue #19714 : Tests for importlib.machinery.WindowsRegistryFinder.
...
Patch by Claudiu Popa, review by Martin v. Löwis.
2014-08-22 10:28:42 -04:00
Senthil Kumaran
f499931b33
merge from 3.4
...
Fix issue22245 - Fix urllib2_localnet test.
Do not aggresively close wfile in the do_GET method in the BasicAuthHandler.
2014-08-22 16:27:06 +05:30
Senthil Kumaran
a969ae2e11
Fix issue22245 - Fix urllib2_localnet test.
...
Do not aggresively close wfile in the do_GET method in the BasicAuthHandler.
2014-08-22 16:26:21 +05:30
Antoine Pitrou
55ac5b3f7b
Issue #22118 : Switch urllib.parse to use RFC 3986 semantics for the resolution of relative URLs, rather than RFCs 1808 and 2396.
...
Patch by Demian Brecht.
2014-08-21 19:16:17 -04:00
Serhiy Storchaka
a7eb746278
Issue #21549 : Added the "members" parameter to TarFile.list().
2014-08-21 10:01:16 +03:00
Benjamin Peterson
48ad7c0b01
use __qualname__ to compute bound method repr ( closes #21389 )
...
Patch from Steven Barker.
2014-08-20 18:41:57 -05:00
Senthil Kumaran
2b7ccbda90
merge from 3.4
...
Fix Issue #8797 : Raise HTTPError on failed Basic Authentication immediately. Initial patch by Sam Bull.
2014-08-20 07:55:53 +05:30
Senthil Kumaran
783737625d
Fix Issue #8797 : Raise HTTPError on failed Basic Authentication immediately. Initial patch by Sam Bull.
2014-08-20 07:53:58 +05:30
Terry Jan Reedy
f2d9ee67e1
Merge with 3.4
2014-08-19 19:47:51 -04:00
Terry Jan Reedy
37ed873ac2
Idle ColorDelegator: finish removing code for 'as'.
2014-08-19 19:47:38 -04:00
Terry Jan Reedy
f2e500c133
Merge with 3.4
2014-08-19 17:18:11 -04:00
Terry Jan Reedy
c1a723a0b3
Idle ColorDelegator: remove special case code for 'as' in import statements.
...
'As' became a full keyword when with statements were added in 2.5/2.6.
2014-08-19 17:17:57 -04:00
Benjamin Peterson
344ff4ab2b
allow recursion depth to be specified ( closes #19628 )
...
Patch from Claudiu Popa.
2014-08-19 16:13:26 -05:00
Serhiy Storchaka
54b3b3fb2c
Fixed typo.
2014-08-19 18:20:48 +03:00
Serhiy Storchaka
996c3deafe
Fixed typo.
2014-08-19 18:20:23 +03:00
Serhiy Storchaka
ef1a79799f
Issue #15696 : Add a __sizeof__ implementation for mmap objects on Windows.
2014-08-19 17:12:46 +03:00
Serhiy Storchaka
76b47655ff
Issue #15696 : Add a __sizeof__ implementation for mmap objects on Windows.
2014-08-19 17:11:20 +03:00
Serhiy Storchaka
79c27c3319
Clean up test_user_command.
2014-08-18 17:48:15 +03:00
Serhiy Storchaka
d6ec309c36
Clean up test_user_command.
2014-08-18 17:47:29 +03:00
Benjamin Peterson
c5847414f9
merge 3.4 ( closes #22200 )
2014-08-17 23:01:33 -05:00
Benjamin Peterson
0c56bb97ea
remove 2.2 and 2.6 compat code ( closes #22200 )
...
Patch from Thomas Kluyver.
2014-08-17 23:00:42 -05:00
Serhiy Storchaka
c399e85207
Issue #22165 : Fixed test_undecodable_filename on Mac OS.
2014-08-17 16:58:11 +03:00
Serhiy Storchaka
d9e9528818
Issue #22165 : Fixed test_undecodable_filename on Mac OS.
2014-08-17 16:57:39 +03:00
Serhiy Storchaka
0879001f00
Issue #22068 : Avoided reference loops with Variables and Fonts in Tkinter.
2014-08-17 15:32:42 +03:00
Serhiy Storchaka
87bbf257ef
Issue #22068 : Avoided reference loops with Variables and Fonts in Tkinter.
2014-08-17 15:31:59 +03:00
Serhiy Storchaka
95d5c9d5ff
Issue #22201 : Command-line interface of the zipfile module now correctly
...
extracts ZIP files with directory entries. Patch by Ryan Wilson.
2014-08-17 15:17:56 +03:00
Serhiy Storchaka
97f17ff840
Issue #22201 : Command-line interface of the zipfile module now correctly
...
extracts ZIP files with directory entries. Patch by Ryan Wilson.
2014-08-17 15:14:48 +03:00
Serhiy Storchaka
fbe912b756
Issue #22165 : Fixed test_undecodable_filename on non-UTF-8 locales.
2014-08-17 12:21:06 +03:00
Serhiy Storchaka
a64ce5d744
Issue #22165 : Fixed test_undecodable_filename on non-UTF-8 locales.
2014-08-17 12:20:02 +03:00
Serhiy Storchaka
41a08e557a
Issue #22165 : SimpleHTTPRequestHandler now supports undecodable file names.
2014-08-17 08:24:49 +03:00
Serhiy Storchaka
cb5bc408ad
Issue #22165 : SimpleHTTPRequestHandler now supports undecodable file names.
2014-08-17 08:22:11 +03:00
Nick Coghlan
f9e227e5a9
Issue #20184 : Add signature introspection for 30 of the builtins
...
Also adds a test to test_inspect to track progress on builtin
introspection support, to ensure it doesn't regress in the future.
2014-08-17 14:01:19 +10:00
Senthil Kumaran
e2953e5146
merge 3.4; backout changeset 3435c5865cfc due to buildbot failures. Ref #8797
2014-08-16 22:54:24 +05:30
Senthil Kumaran
402df0975c
backout changeset 3435c5865cfc due to buildbot failures. Ref #8797
2014-08-16 22:52:37 +05:30
Victor Stinner
69c1a6651d
(Merge 3.4) Closes #22188 : test_gdb now runs gdb with -nx: "Do not execute
...
commands from any .gdbinit initialization files".
2014-08-16 14:38:17 +02:00
Victor Stinner
7869a4e03a
Closes #22188 : test_gdb now runs gdb with -nx: "Do not execute commands from
...
any .gdbinit initialization files".
2014-08-16 14:38:02 +02:00
Victor Stinner
cddaa1bd62
(Merge 3.4) Closes #22205 : sys._debugmallocstats is a cpython specific feature,
...
so test_debugmallocstats should be marked as such. Patch written by Martin
Matusiak.
2014-08-16 14:11:14 +02:00
Victor Stinner
8e7966b00e
Closes #22205 : sys._debugmallocstats is a cpython specific feature, so
...
test_debugmallocstats should be marked as such. Patch written by Martin
Matusiak.
2014-08-16 14:11:01 +02:00
Senthil Kumaran
39e6c07beb
merge from 3.4
...
Fix Issue #8797 : Raise HTTPError on failed Basic Authentication immediately. Initial patch by Sam Bull.
2014-08-16 14:19:09 +05:30
Senthil Kumaran
b2e3a939bf
Fix Issue #8797 : Raise HTTPError on failed Basic Authentication immediately. Initial patch by Sam Bull.
2014-08-16 14:17:38 +05:30
Terry Jan Reedy
eae94706a3
Merge with 3.4
2014-08-15 01:23:15 -04:00
Terry Jan Reedy
f819ef74da
Issue #22065 : Update turtledemo menu creation; don't use obsolete Menubutton.
2014-08-15 01:23:02 -04:00
Terry Jan Reedy
011b55b8d7
#22053 : actually remove .txt files from 3.4.
2014-08-15 00:55:42 -04:00
Terry Jan Reedy
c5212dd5d3
Issue #22065 : Try the delete demohelp.txt part again.
2014-08-15 00:47:36 -04:00
Terry Jan Reedy
2d7d661f37
Issue #22065 : forward port the changes in c26862955342, update docstring with
...
changes that were only merged into demohelp.txt, and re-delete demohelp.txt.
2014-08-15 00:39:04 -04:00
Terry Jan Reedy
94ee51ed9e
Issue #10291 : Backport 004fe3449193 with a few changes due to 22095.
...
Will forward port 22095 changes separately.
2014-08-14 23:59:32 -04:00
Terry Jan Reedy
6afc2250b3
Merge with 3.4
2014-08-14 21:55:01 -04:00
Terry Jan Reedy
0726ddf449
Issue #17390 : Adjust Editor window title. Remove 'Python', move version to end.
2014-08-14 21:54:43 -04:00
Berker Peksag
3714ab4c27
Issue #21445 : Pass exception messages correctly to assertTrue in
...
the FileCompareTestCase.test_matching test.
Patch by Steven Barker.
2014-08-14 08:35:15 +03:00
Berker Peksag
143fe05da1
Issue #21445 : Pass exception messages correctly to assertTrue in
...
the FileCompareTestCase.test_matching test.
Patch by Steven Barker.
2014-08-14 08:34:32 +03:00
Serhiy Storchaka
1bed4a9f5f
Issue #20729 : Restored the use of lazy iterkeys()/itervalues()/iteritems()
...
in the mailbox module. This is partial rollback of changeset f340cb045bf9.
2014-08-13 09:36:06 +03:00
Serhiy Storchaka
cd3aacf525
Issue #20729 : Restored the use of lazy iterkeys()/itervalues()/iteritems()
...
in the mailbox module. This is partial rollback of changeset f340cb045bf9.
2014-08-13 09:35:21 +03:00
Raymond Hettinger
92c7b90148
merge
2014-08-12 12:45:28 -07:00
Raymond Hettinger
4d58897fdb
Issue 22184: Early detection and reporting of missing lru_cache parameters
2014-08-12 12:44:52 -07:00
Serhiy Storchaka
574d4cfdf6
Decreased memory requirements of new tests added in issue21448.
2014-08-12 20:23:29 +03:00
Serhiy Storchaka
4d83192ea0
Decreased memory requirements of new tests added in issue21448.
2014-08-12 20:22:48 +03:00
Serhiy Storchaka
1e133cab39
Issue #21448 : Fixed FeedParser feed() to avoid O(N**2) behavior when parsing long line.
...
Original patch by Raymond Hettinger.
2014-08-12 14:00:29 +03:00
Serhiy Storchaka
320a1c0ff7
Issue #21448 : Fixed FeedParser feed() to avoid O(N**2) behavior when parsing long line.
...
Original patch by Raymond Hettinger.
2014-08-12 13:59:11 +03:00
Serhiy Storchaka
2a140fb58b
Issue #17923 : glob() patterns ending with a slash no longer match non-dirs on
...
AIX. Based on patch by Delhallt.
2014-08-12 12:56:25 +03:00
Serhiy Storchaka
6f20170762
Issue #17923 : glob() patterns ending with a slash no longer match non-dirs on
...
AIX. Based on patch by Delhallt.
2014-08-12 12:55:12 +03:00
Antoine Pitrou
bd7ff30ff9
Issue #20746 : Fix test_pdb to run in refleak mode (-R). Patch by Xavier de Gaye.
2014-08-11 21:41:46 -04:00
Antoine Pitrou
c04d468333
Issue #20746 : Fix test_pdb to run in refleak mode (-R). Patch by Xavier de Gaye.
2014-08-11 21:40:38 -04:00
Victor Stinner
6d201685e4
Close #22175 : Improve test_faulthandler readability with dedent.
...
Patch written by Xavier de Gaye.
2014-08-10 19:50:08 +02:00
R David Murray
2539e6744b
#21725 : Add RFC 6531 (SMTPUTF8) support to smtpd.
...
Patch by Milan Oberkirch, developed as part of his 2014 GSOC project.
Note that this also fixes a bug in mock_socket ('getpeername' was returning a
simple string instead of the tuple required for IPvX protocols), a bug in
DebugServer with respect to handling binary data (should have been fixed when
decode_data was introduced, but wasn't found until this patch was written),
and a long-standing bug in DebugServer (it was printing an extra blank line at
the end of the displayed message text).
2014-08-09 16:40:49 -04:00
Victor Stinner
68e0808ad5
(Merge 3.4) Close #22175 : Improve test_faulthandler readability with dedent.
...
Patch written by Xavier de Gaye.
2014-08-10 19:51:05 +02:00
Serhiy Storchaka
d5736faabe
Issue #22161 : Conformed arguments type checks in ctype to actually supported
...
types. Corrected error messages about bytes arguments.
2014-08-09 09:34:25 +03:00
Serhiy Storchaka
4f06d604c4
Issue #22161 : Conformed arguments type checks in ctype to actually supported
...
types. Corrected error messages about bytes arguments.
2014-08-09 09:33:05 +03:00
Terry Jan Reedy
f1a98f50e6
Merge with 3.4
2014-08-08 23:33:32 -04:00
Terry Jan Reedy
da26cca1ce
Issue #14105 : Stop removing breakpoints from Idle editors.
...
Move BREAK tag configuration to PyShellEditorWindow.
2014-08-08 23:33:16 -04:00
Zachary Ware
d630e0070f
Closes #22060 : Merge with 3.4
2014-08-08 13:35:11 -05:00
Zachary Ware
5a794c16d9
Issue #22060 : Clean up/simplify test_ctypes, use test discovery
2014-08-08 13:32:16 -05:00
Serhiy Storchaka
304e542ccd
Issue #20056 : Fixed deprecation warning about bytes path in test_shutil on
...
Windows. Path by Vajrasky Kok.
2014-08-07 19:39:30 +03:00
Serhiy Storchaka
41ad77c697
Issue #20056 : Fixed deprecation warning about bytes path in test_shutil on
...
Windows. Path by Vajrasky Kok.
2014-08-07 19:38:37 +03:00
Ezio Melotti
869778e520
#22092 : merge with 3.4.
2014-08-07 03:28:26 +03:00
Ezio Melotti
1241c47aa2
#22092 : use absolute imports in unittest tests. Patch by Vajrasky Kok.
2014-08-07 03:20:22 +03:00
Antoine Pitrou
b349e4c929
Issue #22116 : C functions and methods (of the 'builtin_function_or_method' type) can now be weakref'ed. Patch by Wei Wu.
2014-08-06 19:31:40 -04:00
Serhiy Storchaka
1121377cdb
Issue #5411 : Added support for the "xztar" format in the shutil module.
2014-08-06 18:50:19 +03:00
Barry Warsaw
7c549c4e64
- Issue #21539 : Add a *exists_ok* argument to `Pathlib.mkdir()` to mimic
...
`mkdir -p` and `os.makedirs()` functionality. When true, ignore
FileExistsErrors. Patch by Berker Peksag.
(With minor cleanups, additional tests, doc tweaks, etc. by Barry)
Also:
* Remove some unused imports in test_pathlib.py reported by pyflakes.
2014-08-05 11:28:12 -04:00
Ezio Melotti
0020d8e4fd
#11955 : merge with 3.4.
2014-08-05 02:24:28 +03:00
Ezio Melotti
12b7f48216
#11955 : show the list of args in case of error in test_argparse.
2014-08-05 02:24:03 +03:00
Zachary Ware
17c336284d
Closes #22104 : Merge with 3.4
2014-08-04 11:18:23 -05:00
Zachary Ware
69fb6a41c5
Issue #22104 : Don't hold a reference to the loaded TestSuite in runtest_inner
2014-08-04 11:15:10 -05:00
Ezio Melotti
c734c387de
#20977 : merge with 3.4.
2014-08-04 17:17:21 +03:00
Ezio Melotti
d577480197
#20977 : fix undefined name in the email module. Patch by Rose Ames.
2014-08-04 17:16:49 +03:00
Raymond Hettinger
bbeac6ebd8
Use two-argument form of next() and use a return-statement instead of an explicit raise StopIteration
2014-08-03 22:49:07 -07:00
Raymond Hettinger
ae39fbdd84
Make the import private to keep the global namespace clean.
2014-08-03 22:40:59 -07:00
Raymond Hettinger
f25a38e568
Use reversed() instead of creating a new temporary list.
2014-08-03 22:36:32 -07:00
Terry Jan Reedy
5427df266b
Merge with 3.4
2014-08-03 23:03:16 -04:00
Terry Jan Reedy
4036d87f4d
PEP 8 spacing in idlelib.configDialog: mostly a = b in assignments,
...
a, b in arg lists, and hanging indents for long arg lists.
2014-08-03 23:02:58 -04:00
Ezio Melotti
6fc16d81af
#21047 : set the default value for the *convert_charrefs* argument of HTMLParser to True. Patch by Berker Peksag.
2014-08-02 18:36:12 +03:00
Ezio Melotti
11bec7a1b8
Add an __all__ to html.entities.
2014-08-02 15:15:02 +03:00
Ezio Melotti
73a4359eb0
#15114 : the strict mode and argument of HTMLParser, HTMLParser.error, and the HTMLParserError exception have been removed.
2014-08-02 14:10:30 +03:00
Terry Jan Reedy
ffff1440d1
Issue #22077 : Improve index error messages for bytearrays, bytes, lists, and
...
tuples by adding 'or slices'. Added ', not <typename' for bytearrays.
Original patch by Claudiu Popa.
2014-08-02 01:30:37 -04:00
Antoine Pitrou
0b87831de9
Simplify code in multiprocessing.Connection.send_bytes().
...
Followup to issue #20540 ; patch by Serhiy.
2014-07-31 18:41:57 -04:00