Senthil Kumaran
cad7b31467
Issue #16250 : Fix URLError invocation with proper args.
2012-10-27 02:26:46 -07:00
Philip Jenvey
5f9459fbed
merge with 3.2
2012-10-26 17:05:09 -07:00
Philip Jenvey
45c41494bf
bounds check for bad data (thanks amaury)
2012-10-26 17:01:53 -07:00
Vinay Sajip
e87acc1f38
Issue #16116 : Now uses corrected include and library paths when building C extensions in a venv.
2012-10-23 20:26:14 +01:00
Ezio Melotti
e6e96eea51
#16245 : Fix the value of a few entities in html.entities.html5.
2012-10-23 15:51:27 +02:00
Ezio Melotti
518dbfd7b5
Reorder html.entities.html5 entities to make updates easier. Patch by Iuliia Proskurnia.
2012-10-23 14:45:58 +02:00
Ned Deily
b6d24d9746
Issue #15853 : merge 3.2 -> 3.3
2012-10-22 15:18:46 -07:00
Ned Deily
fdf0f274e6
Issue #15853 : Prevent IDLE crash on OS X when opening Preferences menu
...
with certain versions of Tk 8.5. Initial patch by Kevin Walzer.
2012-10-22 15:14:31 -07:00
Nadeem Vawda
5f8f0d6777
Issue #14398 : Fix size truncation and overflow bugs in bz2 module.
2012-10-21 21:13:27 +02:00
Antoine Pitrou
550841253f
Issue #16220 : wsgiref now always calls close() on an iterable response.
...
Patch by Brent Tubbs.
2012-10-21 14:14:34 +02:00
Antoine Pitrou
66510fedb4
Fix whacky spacking in test_wsgiref
2012-10-21 14:13:32 +02:00
Antoine Pitrou
ae247a5ff6
Issue #16220 : wsgiref now always calls close() on an iterable response.
...
Patch by Brent Tubbs.
2012-10-21 14:09:05 +02:00
Ned Deily
d2cc1bb057
Issue #10405 : merge from 3.2
2012-10-20 13:27:32 -07:00
Ned Deily
2778d0d147
Issue #10405 : Document IDLE context menus in Standard Library document
...
and IDLE Help file. (Thanks to Nick ODell and Todd Rovito for suggestions.)
Update Debug menu options in docs to match current code plus various other
minor IDLE doc and help edits.
2012-10-20 13:25:34 -07:00
Nick Coghlan
62b4136277
Fix broken test and replace redundant generator with a tuple
2012-10-20 00:03:46 +10:00
Nick Coghlan
c71b4c7198
Issue #6074 : Actually delete the source file in the test as intended
2012-10-19 23:38:36 +10:00
Nick Coghlan
11d752e374
Remove unused import
2012-10-19 23:37:16 +10:00
Nick Coghlan
eb8d627bbd
Issue #6074 : Apply an appropriate fix for importlib based imports
2012-10-19 23:32:00 +10:00
Nick Coghlan
34937ce249
Issue #6074 : Forward port Windows read-only source file fix from 2.7
2012-10-19 22:38:14 +10:00
Giampaolo Rodola'
2d51f687e1
Fix issue #16270 : urllib may hang when used for retrieving files via FTP by using a context manager.
2012-10-19 13:40:28 +02:00
Giampaolo Rodola'
b0cc91290c
Fix issue #16270 : urllib may hang when used for retrieving files via FTP by using a context manager.
2012-10-19 13:34:32 +02:00
Ned Deily
bfbf3f139d
Issue #16226 : Fix IDLE Path Browser crash.
...
(Patch by Roger Serwy)
2012-10-18 18:16:44 -07:00
Trent Nelson
ecbe2a9185
Issue #15298 : refactor previous fix from 66959d419369.
2012-10-17 18:03:24 -04:00
Trent Nelson
016884cbaa
Issue #16257 : make test_create_connection() handle ENETUNREACH.
2012-10-17 06:15:40 -04:00
Trent Nelson
45bb613e25
Issue #16257 : make test_create_connection() handle ENETUNREACH.
2012-10-17 06:15:15 -04:00
Trent Nelson
ee528cccde
Issue #15298 : fix an OS X bootstrap issue with _sysconfigdata.py.
...
Reported by: Ned Deily.
2012-10-17 04:23:50 -04:00
Eric Snow
547298c94c
Close #16160 : Subclass support now works for types.SimpleNamespace. Thanks to RDM for noticing.
2012-10-16 22:35:38 -07:00
Antoine Pitrou
0c7081aff4
Merge for issue #15744 : add tests for the writelines() method of file objects.
2012-10-16 23:05:01 +02:00
Antoine Pitrou
3ed2cb5520
Also add tests for TextIOWrapper.writelines() (issue #15744 ).
2012-10-16 23:02:27 +02:00
Antoine Pitrou
131a489903
Add tests for the writelines() method of file objects.
...
Original patch by Felipe Cruz.
2012-10-16 22:57:11 +02:00
Trent Nelson
c101bf32c4
Issue #15298 : ensure _sysconfigdata is generated in build directory,
...
not source directory.
Patch by Richard Oudkerk (sbt).
2012-10-16 08:13:12 -04:00
Trent Nelson
d783c8ed00
Issue #15833 : don't raise an exception if importlib can't write byte-compiled
...
files.
This fixes a regression introduced by 3.3. Patch by Charles-François Natali.
2012-10-16 07:47:34 -04:00
Vinay Sajip
e7e7af4558
Issue #16244 : Merged change from 3.2.
2012-10-16 10:32:13 +01:00
Vinay Sajip
ee892b9226
Issue #16244 : Remove file mode overrides.
2012-10-16 10:28:31 +01:00
Benjamin Peterson
143d034ecd
merge 3.2
2012-10-12 12:04:32 -04:00
Benjamin Peterson
7a9953edfb
skip if __doc__ is gone
2012-10-12 11:44:19 -04:00
Benjamin Peterson
951a9e381b
fix to work if __doc__ is removed
2012-10-12 11:44:10 -04:00
Brian Curtin
0b960f5a58
Fix #16176 . Properly identify Windows 8 via platform.platform()
...
Add handling of the 6.2 release line, aka Windows 8 and Windows 2012 Server.
2012-10-11 16:07:52 -05:00
Brett Cannon
a6ce4fd426
Closes issue #15111 : Calling __import__ with a module specified in
...
fromlist which causes its own ImportError (e.g. the module tries to
import a non-existent module) should have that exception propagate.
2012-10-10 19:03:46 -04:00
Gregory P. Smith
a10ddb8a55
Fixes Issue #16114 : The subprocess module no longer provides a
...
misleading error message stating that args[0] did not exist when
either the cwd or executable keyword arguments specified a path that
did not exist.
2012-10-10 03:44:47 -07:00
Gregory P. Smith
5591b02a4c
Fixes Issue #16114 : The subprocess module no longer provides a
...
misleading error message stating that args[0] did not exist when
either the cwd or executable keyword arguments specified a path that
did not exist.
It now keeps track of if the child got as far as preexec and reports it if
not back to the parent via a special "noexec" error message value in
the error pipe so that the cwd can be blamed for a failed chdir
instead of the exec of the executable being blamed instead.
The executable is also always reported accurately when exec fails.
Unittests enhanced to cover these cases.
2012-10-10 03:34:47 -07:00
Chris Jerdonek
86b0fb23e5
Issue #16170 : Remove Linux skip from test_subprocess's test_executable test.
2012-10-09 13:17:49 -07:00
Benjamin Peterson
455fa0a314
merge heads
2012-10-09 11:16:26 -04:00
Benjamin Peterson
b29614e047
compare singletons by identity not equality ( closes #16712 )
...
Patch from Serhiy Storchaka.
2012-10-09 11:16:03 -04:00
Benjamin Peterson
a511935151
compare with equality not identity (issue #16172 )
...
Patch from Serhiy Storchaka.
2012-10-09 11:14:59 -04:00
Richard Oudkerk
ea69bd3ce1
Issue #16169 : Fix ctypes.WinError()'s confusion between errno and winerror
2012-10-09 13:28:10 +01:00
Vinay Sajip
7903df4125
Issue #16168 : Merged SysLogHandler update from 3.2.
2012-10-09 08:22:01 +01:00
Vinay Sajip
b5ca932be2
Issue #16168 : Use specified socket type for domain sockets in SysLogHandler.
2012-10-09 08:19:25 +01:00
Chris Jerdonek
2d051b8eaf
Issue #16115 : Skip a newly added subprocess.Popen() test on Linux.
2012-10-08 17:53:46 -07:00
Chris Jerdonek
776cb199bc
Issue #16115 : Improve testing of the executable argument to subprocess.Popen().
2012-10-08 15:56:43 -07:00
Andrew Svetlov
3e5dae0ee2
Merge issue #14900 : Add aliases for sorting params for pstat to follow column names from pstat output.
...
Patch by Arne Babenhauserheide.
2012-10-07 19:19:17 +03:00
Andrew Svetlov
c3e5b10ae7
Issue #14900 : Add aliases for sorting params for pstat to follow column names from pstat output.
...
Patch by Arne Babenhauserheide.
2012-10-07 19:18:39 +03:00
Andrew Svetlov
a514ea32b2
Merge issue #14900 : Distuguish call count and primitive call count in pstat output.
...
Patch by Arne Babenhauserheide.
2012-10-07 18:59:11 +03:00
Andrew Svetlov
2ef4584e6d
Issue #14900 : Distuguish call count and primitive call count in pstat output.
...
Patch by Arne Babenhauserheide.
2012-10-07 18:58:42 +03:00
Eli Bendersky
948af23a77
Issue #15888 : fixing problems in ipaddress doctests. Patch by Chris Jerdonek
2012-10-07 07:23:50 -07:00
Andrew Svetlov
a2028733ef
revert accidental inclusion of subprocess tests
2012-10-06 18:45:47 +03:00
Andrew Svetlov
b2209ccfa0
revert accidental inclusion of subprocess tests
2012-10-06 18:45:24 +03:00
Andrew Svetlov
5061a34283
Issue #16025 : Minor corrections to the zipfile documentation.
...
Patch by Serhiy Storchaka.
2012-10-06 18:10:01 +03:00
Andrew Svetlov
afbf90c993
Issue #16025 : Minor corrections to the zipfile documentation.
...
Patch by Serhiy Storchaka.
2012-10-06 18:02:05 +03:00
Andrew Svetlov
1a53c0cbf5
Issue #16115 : Add test for check that executable arg to Popen() takes precedence over args[0] arg\n \n Patch by Kushal Das
2012-10-05 22:52:15 +03:00
Jesus Cea
cb95996fdc
MERGE: #16112 : platform.architecture does not correctly escape argument to /usr/bin/file. Fix original patch
2012-10-05 05:31:31 +02:00
Jesus Cea
685fffa8f4
#16112 : platform.architecture does not correctly escape argument to /usr/bin/file. Fix original patch
2012-10-05 05:21:42 +02:00
Jesus Cea
adc8211e00
#16112 : platform.architecture does not correctly escape argument to /usr/bin/file. Use 'communicate()' and decode the bytes
2012-10-05 04:58:38 +02:00
Andrew Svetlov
eb0314f5a8
Merge: Issue #14997 : disable <F5> in idle shell window.
...
Thanks to Roger Serwy for patch.
2012-10-04 22:50:13 +03:00
Andrew Svetlov
4ca222d4d5
Issue #14997 : disable <F5> in idle shell window.
...
Thanks to Roger Serwy for patch.
2012-10-04 22:48:34 +03:00
Antoine Pitrou
ee329318db
Issue #16089 : Allow ElementTree.TreeBuilder to work again with a non-Element element_factory (fixes a regression in SimpleTAL).
2012-10-04 19:53:29 +02:00
Jesus Cea
6e1d2b6e78
Closes #16126 : PyErr_Format format mismatch in _testcapimodule.c
2012-10-04 16:06:30 +02:00
Jesus Cea
e8801e2e44
MERGE: Closes #16112 : platform.architecture does not correctly escape argument to /usr/bin/file
2012-10-04 13:56:23 +02:00
Jesus Cea
fc990e942f
Closes #16112 : platform.architecture does not correctly escape argument to /usr/bin/file
2012-10-04 13:51:43 +02:00
R David Murray
258fabefde
#11109 : clean up docs, add whatsnew entry, and fix Justin's last name.
2012-10-01 21:43:46 -04:00
Stefan Krah
219c7b90d0
Issue #15599 : Increase the switch interval. Several systems cannot handle
...
gil_interval == 1 in extreme situations.
2012-10-01 23:21:45 +02:00
Nadeem Vawda
eb70be2b46
Issue #16304 : Further optimize BZ2File.readlines?().
2012-10-01 23:05:32 +02:00
Nadeem Vawda
138ad5066d
Fix error handling in new fast path of BZ2File.readline().
2012-10-01 23:04:11 +02:00
Nadeem Vawda
452add08a1
Issue #16304 : Another performance optimization for BZ2File.
...
Patch by Serhiy Storchaka.
2012-10-01 23:02:50 +02:00
Tim Golden
621302c3f4
Issue16097 Fix small typo in comment (patch by Wael Al Jishi)
2012-10-01 16:40:40 +01:00
Nadeem Vawda
b7a0bfe912
Issue #16304 : Further performance improvements for BZ2File.
...
Optimizations suggested by Serhiy Storchaka.
2012-09-30 23:58:01 +02:00
Chris Jerdonek
9a6ada8026
Issue #15533 : Merge update from 3.2.
2012-09-30 09:46:04 -07:00
Chris Jerdonek
c2cd626497
Issue #15533 : Skip test_cwd_with_relative_*() tests on Windows pending resolution of issue.
2012-09-30 09:45:00 -07:00
Nadeem Vawda
9e2a28ea54
Fix the return value of BZ2File._read_block() to be consistent with comments.
2012-09-30 13:41:29 +02:00
Chris Jerdonek
28714c8c26
Issue #15533 : Merge fix from 3.2.
2012-09-30 02:15:37 -07:00
Chris Jerdonek
ec3ea94251
Issue #15533 : Clarify docs and add tests for subprocess.Popen()'s cwd argument.
2012-09-30 00:10:28 -07:00
Nadeem Vawda
6c57318c3a
Issue #16034 : Fix performance regressions in the new BZ2File implementation.
...
Thanks to Victor Hooi for the bug report, and Serhiy Storchaka for the initial patch.
2012-09-30 03:57:33 +02:00
Antoine Pitrou
2a180207ba
Speed up test_httpservers by avoiding a one-second cleanup wait after each test case.
2012-09-30 01:08:55 +02:00
Antoine Pitrou
f727082b71
Speed up test_httpservers by avoiding a one-second cleanup wait after each test case.
2012-09-30 01:05:30 +02:00
Gregory P. Smith
02dee1acd8
Fixes issue #15756 : subprocess.poll() now properly handles errno.ECHILD
...
to return a returncode of 0 when the child has already exited or cannot be
waited on.
2012-09-29 11:53:08 -07:00
Gregory P. Smith
3905171f1e
Fixes issue #15756 : subprocess.poll() now properly handles errno.ECHILD
...
to return a returncode of 0 when the child has already exited or cannot
be waited on.
2012-09-29 11:40:38 -07:00
Benjamin Peterson
14fb44e1ba
merge mostly from default
2012-09-29 14:14:19 -04:00
Georg Brandl
e054f452bd
Fix test_sys.test_implementation for final releases.
2012-09-29 09:44:17 +02:00
Georg Brandl
99a247fd01
Merge with main repo default branch.
2012-09-29 09:27:15 +02:00
Georg Brandl
c7dcd50e4e
Bump version to 3.3.0 final.
2012-09-29 09:04:54 +02:00
Brett Cannon
8ed677db12
Add some comments.
2012-09-28 16:41:39 -04:00
Stefan Krah
8a491a8eef
Closes #16080 : The decorator ignores failed attempts to set the required
...
locale, so an additional check is required.
2012-09-28 17:17:11 +02:00
Michael Foord
28d591ceef
Closes issue 15323. Improve failure message of Mock.assert_called_once_with
2012-09-28 16:15:22 +01:00
Stefan Krah
6fb204af79
Issue #16080 : Use run_with_locale() decorator to reset the locale properly.
2012-09-28 16:18:54 +02:00
Michael Foord
8ef1fcecc5
Merge
2012-09-28 15:19:45 +01:00
Michael Foord
d38e6e516d
Closes issue 16064. No longer hard code executable name in unittest help output.
2012-09-28 15:14:37 +01:00
Michael Foord
7a1901f861
Closes issue #12376 : Pass on parameters in unittest.TextTestResult.__init__ super call
2012-09-28 14:14:03 +01:00
Benjamin Peterson
43f8f4cf18
renmae test method to avoid conflict ( #16056 )
2012-09-27 18:10:17 -04:00
Mark Dickinson
7c95bb35e4
Issue #16060 : Fix a double DECREF in int() implementation. Thanks Serhiy Storchaka.
2012-09-27 19:38:59 +01:00
Ezio Melotti
c7e139b431
#1087 : use proper skips in test_os.
2012-09-26 20:01:34 +03:00