Antoine Pitrou
c52d113e28
Issue #11995 : test_pydoc doesn't import all sys.path modules anymore.
2013-05-19 15:46:37 +02:00
Serhiy Storchaka
87aa7dc211
Issue #17812 : Fixed quadratic complexity of base64.b32encode().
...
Optimize base64.b32encode() and base64.b32decode() (speed up to 3x).
2013-05-19 11:49:32 +03:00
Eli Bendersky
20c1cdd64a
Issue #17901 : fix TreeBuilder construction for an explicit element_factory=None
...
Based on report and patch by Aaron Oakley.
2013-05-18 15:47:58 -07:00
Vinay Sajip
10e8c49a11
Re-enabled skipped test.
2013-05-18 10:19:54 -07:00
Richard Oudkerk
850800f15e
Merge.
2013-05-18 18:13:16 +01:00
Antoine Pitrou
31fb419908
Issue #17980 : Fix possible abuse of ssl.match_hostname() for denial of service using certificates with many wildcards (CVE-2013-2099).
2013-05-18 17:59:12 +02:00
Raymond Hettinger
163e9821b4
Undo the deprecation of _asdict().
...
Backed out changeset c4ca39bece9d
2013-05-18 00:05:20 -07:00
Raymond Hettinger
4e0172fd9a
Deprecate nametuple._asdict()
2013-05-17 17:14:27 -07:00
Raymond Hettinger
8c03d832b3
merge
2013-05-17 16:43:58 -07:00
Benjamin Peterson
4d94474ba3
rewrite the parsing of field names to be more consistent wrt recursive expansion
2013-05-17 18:22:31 -05:00
Benjamin Peterson
48953632df
merge 3.3
2013-05-17 17:35:28 -05:00
Benjamin Peterson
a29ac45200
reset __class__, so multiple runs don't fail ( closes #17999 )
2013-05-17 11:33:26 -05:00
Raymond Hettinger
5c71079d06
merge
2013-05-17 02:29:27 -07:00
Serhiy Storchaka
fff61f2cd3
Issue #14596 : The struct.Struct() objects now use more compact implementation.
2013-05-17 10:49:44 +03:00
Vinay Sajip
862b15e7d0
Issue #17981 : Closed socket on error in SysLogHandler.
2013-05-16 22:57:02 +01:00
Vinay Sajip
3a8f510b52
Closes #17981 : Merged fix from 3.3.
2013-05-16 23:02:54 +01:00
Benjamin Peterson
e8e14591eb
rather than passing locals to the class body, just execute the class body in the proper environment
2013-05-16 14:37:25 -05:00
Giampaolo Rodola'
3cb09064a3
Issue #17992 : Add timeouts to asyncore and asynchat tests so that they won't accidentally hang.
2013-05-16 15:21:53 +02:00
Giampaolo Rodola'
0d4f08cee3
ftplib tests: provide a global socket's TIMEOUT variable and use it everywhere so that failing tests won't accidentally hang
2013-05-16 15:12:01 +02:00
Benjamin Peterson
1e93b06007
complain about "global __class__" in a class body ( closes #17983 )
2013-05-15 16:17:25 -05:00
Benjamin Peterson
312595ce3a
hide the __class__ closure from the class body ( #12370 )
2013-05-15 15:26:42 -05:00
doko@ubuntu.com
94fd53ba4e
- Fix typos in the multiprocessing module.
2013-05-15 18:08:03 +02:00
doko@ubuntu.com
9df891ca41
- Fix typos in the multiprocessing module.
2013-05-15 18:06:56 +02:00
doko@ubuntu.com
bcaddf6382
- Issue #17754 : Make ctypes.util.find_library() independent of the locale.
2013-05-15 18:04:50 +02:00
doko@ubuntu.com
ef535584a9
- Issue #17754 : Make ctypes.util.find_library() independent of the locale.
2013-05-15 18:02:13 +02:00
Benjamin Peterson
e1b4cbc422
when arguments are cells clear the locals slot (backport of #17927 )
2013-05-14 22:31:26 -05:00
Antoine Pitrou
9396356948
Backout c89febab4648 following private feedback by Guido.
...
(Issue #17807 : Generators can now be finalized even when they are part of a reference cycle)
2013-05-14 20:37:52 +02:00
Antoine Pitrou
e1970b8182
Fix ResourceWarnings in test_sax
2013-05-13 22:35:38 +02:00
Antoine Pitrou
2adb6fe246
Fix ResourceWarnings in test_sax
2013-05-13 22:34:21 +02:00
Terry Jan Reedy
6599d0da7d
Merge with 3.3
2013-05-13 16:09:47 -04:00
Terry Jan Reedy
bf4cba7e8b
Silence unclosed open file ResourceWarning.
2013-05-13 16:07:44 -04:00
Terry Jan Reedy
9c60f66dc2
Complete 2 to 3 conversion
2013-05-13 15:44:30 -04:00
Terry Jan Reedy
01180d4679
Complete 2 to 3 conversion
2013-05-13 15:39:24 -04:00
Benjamin Peterson
fa6bdc6d86
merge 3.3
2013-05-12 19:02:05 -05:00
Benjamin Peterson
901a278861
use correct format code for exceptions
2013-05-12 19:01:52 -05:00
Benjamin Peterson
159ae41da6
when an argument is a cell, set the local copy to NULL (see #17927 )
2013-05-12 18:16:06 -05:00
Georg Brandl
997d05d89f
merge
2013-05-12 19:44:21 +02:00
Serhiy Storchaka
3068aed92b
Issue #17606 : Fixed support of encoded byte strings in the XMLGenerator
...
characters() and ignorableWhitespace() methods. Original patch by Sebastian
Ortiz Vasquez.
2013-05-12 17:31:59 +03:00
Serhiy Storchaka
3eab6b363a
Issue #17606 : Fixed support of encoded byte strings in the XMLGenerator
...
characters() and ignorableWhitespace() methods. Original patch by Sebastian
Ortiz Vasquez.
2013-05-12 17:31:16 +03:00
Georg Brandl
88f4dd6451
bump to 3.3.2
2013-05-12 12:51:38 +02:00
Georg Brandl
7025349aa8
merge with 3.3
2013-05-12 12:37:12 +02:00
Georg Brandl
521ed52131
Closes issue #17732 : ignore install-directory specific options in
...
distutils.cfg when a venv is active.
2013-05-12 12:36:07 +02:00
Georg Brandl
2665f21866
merge with 3.3
2013-05-12 12:08:05 +02:00
Georg Brandl
b3bd624a55
Back out patch for #1159051 , which caused backwards compatibility problems.
2013-05-12 11:57:26 +02:00
Georg Brandl
64949fa20e
merge with 3.2
2013-05-12 11:52:22 +02:00
Georg Brandl
c502df4e3e
Issue #17915 : Fix interoperability of xml.sax with file objects returned by
...
codecs.open().
2013-05-12 11:41:12 +02:00
Georg Brandl
93b061bc3e
Issue #1159051 : Back out a fix for handling corrupted gzip files that
...
broke backwards compatibility.
2013-05-12 11:29:27 +02:00
Georg Brandl
831ae8454d
merge heads
2013-05-12 11:24:47 +02:00
Georg Brandl
fbb9152f92
Issue #17838 : merge with 3.3
2013-05-12 11:21:27 +02:00
Benjamin Peterson
0d4931eb9e
prevent IDLE from trying to close when sys.stdin is reassigned ( #17838 )
2013-05-11 22:24:28 -05:00
Vinay Sajip
43473e3680
Diagnostics collected, test disabled for now.
2013-05-12 00:18:02 +01:00
Vinay Sajip
caf9eb8ada
Re-enabled test with more diagnostics.
2013-05-12 00:04:58 +01:00
Benjamin Peterson
fc6f4cd398
merge 3.3
2013-05-11 16:29:11 -05:00
Benjamin Peterson
aa6f688bd4
only close non-None files
2013-05-11 16:29:03 -05:00
Benjamin Peterson
2e8457d01c
remove unused import
2013-05-11 16:12:57 -05:00
Benjamin Peterson
2943cdb5eb
simplify #17947 test with weakrefs
2013-05-11 16:10:52 -05:00
Guido van Rossum
6832c81d5d
#17927 : Keep frame from referencing cell-ified arguments.
2013-05-10 08:47:42 -07:00
Ezio Melotti
79ec9f0ec9
#17809 : merge with 3.3.
2013-05-09 15:24:30 +03:00
Ezio Melotti
ce82d57c74
#17809 : fix a test failure in test_expanduser when $HOME has a trailing /. Patch by Kubilay Kocak.
2013-05-09 15:19:45 +03:00
Serhiy Storchaka
b3c5d85680
Issue #16601 : Restarting iteration over tarfile no more continues from where
...
it left off. Patch by Michael Birtwell.
2013-05-09 14:36:58 +03:00
Serhiy Storchaka
263fab94ee
Issue #16601 : Restarting iteration over tarfile no more continues from where
...
it left off. Patch by Michael Birtwell.
2013-05-09 14:22:26 +03:00
Antoine Pitrou
04e70d19e7
Issue #17807 : Generators can now be finalized even when they are part of a reference cycle.
2013-05-08 18:12:35 +02:00
Ezio Melotti
d62a514386
#17877 : merge with 3.3.
2013-05-08 11:16:33 +03:00
Ezio Melotti
6bcc0f1b51
#17877 : skip test if the Olson's TZ database is missing.
2013-05-08 11:16:02 +03:00
Ezio Melotti
0fbdf26158
#16523 : merge with 3.3.
2013-05-08 10:56:32 +03:00
Richard Oudkerk
c41917f4cb
Correction for 4f82b6cfee46.
2013-05-07 14:36:51 +01:00
Richard Oudkerk
ad34ef8640
Fix os.__all__ to is passes test___all__
2013-05-07 14:23:42 +01:00
Vinay Sajip
577abe161d
Skip failing test pending investigation.
2013-05-07 10:52:18 +01:00
Nick Coghlan
37c74650d1
Issue #11816 : Add missing test helper
...
This is why I should really use hg import rather than patch,
but old habits die hard...
2013-05-07 08:28:21 +10:00
Victor Stinner
8cecc8c262
Issue #7330 : Implement width and precision (ex: "%5.3s") for the format string
...
of PyUnicode_FromFormat() function, original patch written by Ysj Ray.
2013-05-06 23:11:54 +02:00
Antoine Pitrou
5f454a07a0
Issue #1545463 : Global variables caught in reference cycles are now garbage-collected at shutdown.
2013-05-06 21:15:57 +02:00
Nick Coghlan
d62451770a
Issue #11816 : switch test_peepholer to bytecode_helper
2013-05-07 00:03:00 +10:00
Nick Coghlan
b39fd0c9b8
Issue #11816 : multiple improvements to the dis module
...
* get_instructions generator
* ability to redirect output to a file
* Bytecode and Instruction abstractions
Patch by Nick Coghlan, Ryan Kelly and Thomas Kluyver.
2013-05-06 23:59:20 +10:00
Mark Dickinson
9d351332a7
Issue #5845 : avoid an exception at startup on OS X if no .editrc file exists.
2013-05-06 15:39:31 +02:00
Richard Oudkerk
f3a0da24f3
Merge
2013-05-06 12:13:50 +01:00
Richard Oudkerk
def51ca8ea
Issue #17805 : Add AsyncResult alias for ApplyResult
2013-05-06 12:10:04 +01:00
Richard Oudkerk
8575783a00
Issue #13813 : Embed stringification of remote traceback in local
...
traceback raised when pool task raises an exception.
2013-05-06 11:38:25 +01:00
Roger Serwy
53683f6f4b
#13495 : merge with 3.3.
2013-05-05 22:16:03 -05:00
Roger Serwy
9bc7b793ea
#13495 : Avoid loading the color delegator twice in IDLE.
2013-05-05 22:15:44 -05:00
Richard Oudkerk
7a3dae056d
Issue #15528 : Add weakref.finalize to support finalization using
...
weakref callbacks.
This is 2e446e87ac5b except that collections/__init__.py has been
modified to import proxy from _weakref instead of weakref. This
eliminates an import cycle which seems to cause a problem on Unix but
not Windows.
2013-05-05 23:05:00 +01:00
Antoine Pitrou
8408cea0cd
Issue #17094 : Clear stale thread states after fork().
...
Note that this is a potentially disruptive change since it may
release some system resources which would otherwise remain
perpetually alive (e.g. database connections kept in thread-local
storage).
2013-05-05 23:47:09 +02:00
Richard Oudkerk
39b17c513a
Backout 2e446e87ac5b; it breaks the unix buildbots.
2013-05-05 22:12:34 +01:00
Richard Oudkerk
f3593026de
Issue #15528 : Add weakref.finalize to support finalization using
...
weakref callbacks.
2013-05-05 20:59:04 +01:00
Roger Serwy
2faf9b0869
#17798 : merge with 3.3.
2013-05-05 11:35:15 -05:00
Roger Serwy
5b1ab24751
#17798 : Allow IDLE to edit new files when specified on command line.
2013-05-05 11:34:21 -05:00
Brett Cannon
dea2ec4b1d
Fix a test to not use an assertion for something that could be
...
legitimately false.
2013-05-04 18:11:12 -04:00
Brett Cannon
8772b18bc4
Change a test assertion to a conditional so the test will pass on
...
Windows.
2013-05-04 17:54:57 -04:00
Brett Cannon
9c1334ef7d
#17115 : Remove what appears to be a useless chunk of code which broke
...
other tests.
2013-05-04 17:27:59 -04:00
Antoine Pitrou
1a6cb30a34
Issue #5845 : Enable tab-completion in the interactive interpreter by default, thanks to a new sys.__interactivehook__.
...
(original patch by Éric Araujo)
2013-05-04 20:08:35 +02:00
Brett Cannon
4c14b5de1c
#17115,17116: Have modules initialize the __package__ and __loader__
...
attributes to None.
The long-term goal is for people to be able to rely on these
attributes existing and checking for None to see if they have been
set. Since import itself sets these attributes when a loader does not
the only instances when the attributes are None are from someone
overloading __import__() and not using a loader or someone creating a
module from scratch.
This patch also unifies module initialization. Before you could have
different attributes with default values depending on how the module
object was created. Now the only way to not get the same default set
of attributes is to circumvent initialization by calling
ModuleType.__new__() directly.
2013-05-04 13:56:58 -04:00
Ezio Melotti
4e59af7abd
#7855 : merge with 3.3.
2013-05-04 17:47:54 +03:00
Ezio Melotti
28faf03d44
#7855 : Add tests for ctypes/winreg for issues found in IronPython. Initial patch by Dino Viehland.
2013-05-04 17:46:23 +03:00
Serhiy Storchaka
59115aa7c9
Issue #16316 : mimetypes now recognizes the .xz and .txz (.tar.xz) extensions.
2013-05-04 15:12:55 +03:00
Brett Cannon
95ea11fa31
add trailing newline to file
2013-05-03 10:57:08 -04:00
Brett Cannon
142685337f
Move test_imp over to unittest.main()
2013-05-03 10:56:19 -04:00
Brett Cannon
130e48199a
Guard more tests in test_imp requiring imp.load_dynamic() to exist.
2013-05-03 10:54:23 -04:00
Brett Cannon
2a9c653f38
#15902 : merge w/ 3.3
2013-05-03 10:47:17 -04:00
Brett Cannon
9d0f772c51
Issue #15902 : Fix imp.load_module() to accept None as a file when
...
trying to load an extension module.
While at it, also add a proper unittest.skipIf() guard to another test
involving imp.load_dynamic().
2013-05-03 10:37:08 -04:00
Raymond Hettinger
4072875dcb
merge
2013-05-03 02:41:02 -07:00
Raymond Hettinger
b98dcc1f53
Issue #15535 : Fix pickling of named tuples.
2013-05-03 02:24:15 -07:00
Antoine Pitrou
242db728e2
Issue #13721 : SSLSocket.getpeercert() and SSLSocket.do_handshake() now raise an OSError with ENOTCONN, instead of an AttributeError, when the SSLSocket is not connected.
2013-05-01 20:52:07 +02:00
Ezio Melotti
f6ca26fbff
#17802 : merge with 3.3.
2013-05-01 16:20:00 +03:00
Ezio Melotti
8e596a765c
#17802 : Fix an UnboundLocalError in html.parser. Initial tests by Thomas Barlow.
2013-05-01 16:18:25 +03:00
Ezio Melotti
1698babd1b
#14679 : add an __all__ (that contains only HTMLParser) to html.parser.
2013-05-01 16:09:34 +03:00
Ezio Melotti
ed52f6cb73
#11078 : test___all__ now checks for duplicates in __all__. Initial patch by R. David Murray.
2013-05-01 14:58:09 +03:00
Antoine Pitrou
4c09c2cbd5
Issue #17712 : Fix test_gdb failures on Ubuntu 13.04.
2013-05-01 00:17:45 +02:00
Antoine Pitrou
81641d6ebc
Issue #17712 : Fix test_gdb failures on Ubuntu 13.04.
2013-05-01 00:15:44 +02:00
Benjamin Peterson
3b0431dc60
check local class namespace before reaching for cells ( closes #17853 )
2013-04-30 09:41:40 -04:00
Benjamin Peterson
d9fec15e9b
refactor traceback.py to reduce code duplication ( closes #17646 )
...
Patch by Martin Morrison.
2013-04-29 16:09:39 -04:00
Benjamin Peterson
5c089314ef
merge 3.3
2013-04-29 09:08:33 -04:00
Benjamin Peterson
7d110042c5
raise an ImportError (rather than fatal) when __import__ is not found in __builtins__ ( closes #17867 )
2013-04-29 09:08:14 -04:00
Brett Cannon
e1d30f24ee
merge for issue #17358
2013-04-28 11:58:31 -04:00
Brett Cannon
5a4c233a9e
Issue #17358 : imp.load_source() and load_compiled() should now return
...
modules which will typically work when reloaded.
A hack is used to support these functions as their API allowed them to
pass in a file object but then operate as if import had loaded them.
Unfortunately the hack kept a reference around for the file object
passed in which would be unusable on reload since it had been closed.
The solution is to simply use the hack for the initial load but then a
proper loader on the module so that imp.reload() at least has a chance
to work.
2013-04-28 11:53:26 -04:00
Serhiy Storchaka
337f9785fc
Added base64 module tests for non-binary files.
2013-04-28 15:56:32 +03:00
Serhiy Storchaka
abac0a7744
Added base64 module tests for non-binary files.
2013-04-28 15:56:11 +03:00
Serhiy Storchaka
1cda4535b5
Issue #17842 . Added base64 module tests with bytearray arguments.
...
Original patch by Kushal Das.
2013-04-28 15:53:54 +03:00
Serhiy Storchaka
017523c4f4
Issue #17842 . Added base64 module tests with bytearray arguments.
...
Original patch by Kushal Das.
2013-04-28 15:53:08 +03:00
Georg Brandl
ba2f8be4c6
Issue #17843 : Remove bz2 test data that triggers antivirus warnings.
2013-05-12 11:11:51 +02:00
Georg Brandl
ce654f48aa
Issue #15535 : Fix pickling of named tuples.
2013-05-12 11:09:11 +02:00
Antoine Pitrou
9f14681959
Issue #17804 : New function ``struct.iter_unpack`` allows for streaming struct unpacking.
2013-04-27 00:20:04 +02:00
Giampaolo Rodola'
3da670749a
merge heads
2013-04-26 15:24:42 +02:00
Giampaolo Rodola'
11a9bd62b1
ftplib: update connect() docstring by mentioning 'timeout' argument
2013-04-26 15:23:43 +02:00
R David Murray
f0f7ceae3c
17830: preserve line endings of original file when updating keywords.
...
This fixes the test failures on Windows from the new tests, and
includes test fixes as well as the module fix.
2013-04-25 12:01:36 -04:00
Senthil Kumaran
5238092592
Issue #17272 : Making the urllib.request's Request.full_url a descriptor. Fixes
...
bugs with assignment to full_url. Patch by Demian Brecht.
2013-04-25 05:45:48 -07:00
Antoine Pitrou
34373b2252
Issue #17835 : Fix test_io when the default OS pipe buffer size is larger than one million bytes.
2013-04-24 23:33:20 +02:00
Antoine Pitrou
e1a1674e1e
Issue #17835 : Fix test_io when the default OS pipe buffer size is larger than one million bytes.
2013-04-24 23:31:38 +02:00
Brett Cannon
51460cc490
Issue #17244 : Windows doesn't let you set permissions on directories.
2013-04-24 16:34:07 -04:00
Łukasz Langa
06d3abbff3
clean the environment from pre-existing PYTHONWARNINGS for test_warnings
2013-04-24 01:51:42 +02:00
Łukasz Langa
6ae466732c
clean the environment from pre-existing PYTHONWARNINGS for test_warnings
2013-04-24 01:49:52 +02:00
Łukasz Langa
20ea96f29a
backported rev 79713 from 3.4, test_recursion_limit skipped for -O0
2013-04-24 01:29:26 +02:00
Łukasz Langa
f3d8fb142d
fix character index in ExtendedInterpolation's exception message
2013-04-24 01:25:55 +02:00
Łukasz Langa
fa608186b4
fix character index in ExtendedInterpolation's exception message
2013-04-24 01:25:18 +02:00
Ronald Oussoren
a8a5c58a19
(3.3->default) Ensure that plistlib doesn't corrupt deeply nested datastructures
...
Without this changeset plistlib would write empty tags for plistlib.Data
objects in deeply nested datastructures.
Fixes #17353
2013-04-23 13:48:29 +02:00
Ronald Oussoren
326edfde56
Ensure that plistlib doesn't corrupt deeply nested datastructures
...
Without this changeset plistlib would write empty tags for plistlib.Data
objects in deeply nested datastructures.
Fixes #17353
2013-04-23 13:47:22 +02:00
Serhiy Storchaka
b00b596c05
Issue #11714 : Use 'with' statements to assure a Semaphore releases a
...
condition variable. Original patch by Thomas Rachel.
2013-04-22 22:54:16 +03:00
Serhiy Storchaka
81a5855a27
Issue #11714 : Use 'with' statements to assure a Semaphore releases a
...
condition variable. Original patch by Thomas Rachel.
2013-04-22 22:51:43 +03:00
Serhiy Storchaka
fcd9f22238
Issue #16624 : `subprocess.check_output` now accepts an `input` argument,
...
allowing the subprocess's stdin to be provided as a (byte) string.
Patch by Zack Weinberg.
2013-04-22 20:20:54 +03:00
Vinay Sajip
40589f4b63
Closes #17795 : Reverted backwards-incompatible change in SysLogHandler with Unix domain sockets.
2013-04-22 10:14:12 +01:00
Vinay Sajip
e917052e1a
Issue #17795 : Reverted backwards-incompatible change in SysLogHandler with Unix domain sockets.
2013-04-22 10:07:40 +01:00
R David Murray
3927d802b6
Merge #17065 : Use process-unique key for winreg test.
...
Patch by Jeremy Kloth.
2013-04-21 10:10:50 -04:00
R David Murray
4140fb5211
#17065 : Use process-unique key for winreg test.
...
Patch by Jeremy Kloth.
2013-04-21 10:08:02 -04:00
Ezio Melotti
38bae2d7f1
Merge removal of duplicated tests from 3.3.
2013-04-21 03:55:49 +03:00
Ezio Melotti
65f7a9e3c0
Remove duplicated tests.
2013-04-21 03:55:17 +03:00
Alexandre Vassalotti
f3bc946628
Merge 3.3
2013-04-20 13:25:55 -07:00
Alexandre Vassalotti
1f7492c28a
Isuse #17720 : Fix APPENDS handling in the Python implementation of Unpickler
...
to correctly process the opcode when it is used on non-list objects.
2013-04-20 13:19:46 -07:00
Antoine Pitrou
a85017fbe3
Issue #16694 : Add a pure Python implementation of the operator module.
...
Patch by Zachary Ware.
2013-04-20 19:21:44 +02:00
Eli Bendersky
c9f5ca232a
Remove superfluous try/except
2013-04-20 09:11:37 -07:00
Eli Bendersky
bf05df2396
Make license notices more consistent and remove old changelog.
...
Also remove unused macro.
2013-04-20 05:44:01 -07:00
R David Murray
87e984c1ed
#9607 : restore keywords.kwlist after testing it.
2013-04-19 22:38:58 -04:00
R David Murray
32a23c36b4
#9607 : Add tests for the keyword module.
...
Based on the testing ideas in a patch written by Greg Malcolm.
2013-04-19 22:15:26 -04:00