Nadeem Vawda
ad246bfb71
Issue #13898 : test_ssl no longer prints a spurious stack trace on Ubuntu.
2013-03-03 22:44:22 +01:00
Nadeem Vawda
7b39b9b51b
Issue #13898 : test_ssl no longer prints a spurious stack trace on Ubuntu.
2013-03-03 22:31:21 +01:00
Ezio Melotti
bce9a5d5cd
#17334 : test_index now works with unittest test discovery. Patch by Zachary Ware.
2013-03-02 14:47:07 +02:00
Ezio Melotti
02bf701b25
#17333 : test_imaplib now works with unittest test discovery. Patch by Zachary Ware.
2013-03-02 14:25:56 +02:00
Ezio Melotti
7b3e571c16
#17315 : merge with 3.2.
2013-03-01 21:00:05 +02:00
Ezio Melotti
136726c59f
#17315 : unlink a file that test_posixpath was leaving around.
2013-03-01 20:59:17 +02:00
Ezio Melotti
f79493bf9e
#17082 : test_dbm* now work with unittest test discovery. Patch by Zachary Ware.
2013-03-01 11:23:28 +02:00
Ezio Melotti
520378f81d
#17079 : test_ctypes now works with unittest test discovery. Patch by Zachary Ware.
2013-03-01 10:55:17 +02:00
R David Murray
1cb0cb2fcd
#17296 : backport fix for issue 1692335, naive exception pickling.
2013-02-27 08:57:09 -05:00
Ezio Melotti
e601fb0691
#17304 : test_hash now works with unittest test discovery. Patch by Zachary Ware.
2013-02-27 10:09:12 +02:00
Ezio Melotti
1ed6be3793
#17303 : test_future* now work with unittest test discovery. Patch by Zachary Ware.
2013-02-27 10:00:03 +02:00
Victor Stinner
c472c5d7bd
Issue #17223 : Fix test_array on Windows (16-bit wchar_t/Py_UNICODE)
2013-02-26 22:52:11 +01:00
Eli Bendersky
236870439c
Some cosmetic changes
2013-02-26 05:53:23 -08:00
Richard Oudkerk
5b8a3242c4
Merge
2013-02-26 13:00:15 +00:00
Richard Oudkerk
7aaa1ef858
Issue #17018 : Make Process.join() retry if os.waitpid() fails with EINTR.
2013-02-26 12:39:57 +00:00
Victor Stinner
29ec595c6a
Issue #17223 : array module: Fix a crasher when converting an array containing
...
invalid characters (outside range [U+0000; U+10ffff]) to Unicode: repr(array),
str(array) and array.tounicode(). Patch written by Manuel Jacob.
2013-02-26 00:27:38 +01:00
Serhiy Storchaka
f8cf59e8aa
Issue #15083 : Convert ElementTree doctests to unittests.
2013-02-25 17:20:59 +02:00
Serhiy Storchaka
d9a550b5e1
Issue #1470548 : Add test for fragment producing with XMLGenerator.
2013-02-25 13:46:32 +02:00
Serhiy Storchaka
a5f13d2a5f
Issue #1470548 : Add test for fragment producing with XMLGenerator.
2013-02-25 13:46:10 +02:00
R David Murray
9f10f56d13
Merge #17275 : Fix class name in init errors in C bufferedio classes.
...
This fixes an apparent copy-and-paste error.
Patch by Manuel Jacob.
2013-02-23 22:07:55 -05:00
R David Murray
67bfe80758
#17275 : Fix class name in init errors in C bufferedio classes.
...
This fixes an apparent copy-and-paste error.
Patch by Manuel Jacob.
2013-02-23 21:51:05 -05:00
Petri Lehtinen
e766c742c1
Revert "Issue #16121 : Fix line number accounting in shlex"
2013-02-23 23:12:35 +01:00
Petri Lehtinen
0362b54fd9
Revert "Issue #16121 : Fix line number accounting in shlex"
2013-02-23 23:12:03 +01:00
Petri Lehtinen
6d61eaa0d0
Issue #16121 : Fix line number accounting in shlex
2013-02-23 22:09:51 +01:00
Petri Lehtinen
7a05113ccf
Issue #16121 : Fix line number accounting in shlex
2013-02-23 22:08:07 +01:00
Ezio Melotti
eadece2865
#12749 : add a test for non-BMP ranges in character classes.
2013-02-23 08:40:07 +02:00
Ezio Melotti
4ad8eec09e
#17217 : merge with 3.2.
2013-02-23 07:57:53 +02:00
Ezio Melotti
507eb09ad6
#17217 : fix UnicodeEncodeErrors errors in test_format by printing ASCII only.
2013-02-23 07:53:56 +02:00
Ezio Melotti
1ca8794f10
#17249 : check for the availability of the thread module.
2013-02-23 06:42:19 +02:00
Ezio Melotti
35246bd5b1
#17249 : merge with 3.2.
2013-02-23 05:58:38 +02:00
Ezio Melotti
29267c81ce
#17249 : convert a test in test_capi to use unittest and reap threads.
2013-02-23 05:52:46 +02:00
Ezio Melotti
600b71167e
#17255 : merge with 3.2.
2013-02-21 23:17:08 +02:00
Ezio Melotti
0f4377c100
#17255 : test short-circuiting behavior of any()/all(). Patch by Wim Glenn.
2013-02-21 23:15:40 +02:00
Serhiy Storchaka
9d202ba252
Issue #17248 : Fix os.*chown() testing when user is in root group.
2013-02-21 14:34:59 +02:00
Serhiy Storchaka
a2964b3175
Issue #17248 : Fix os.*chown() testing when user is in root group.
2013-02-21 14:34:36 +02:00
Ezio Melotti
79b99dba0f
Silence DeprecationWarnings in test_urllib.
2013-02-21 02:41:42 +02:00
Ezio Melotti
51e243f22e
Silence DeprecationWarnings in test_unicode.
2013-02-20 23:56:01 +02:00
Serhiy Storchaka
43d9fa2167
Issue #17248 : Fix os.*chown() testing when user has group root.
2013-02-20 19:48:47 +02:00
Serhiy Storchaka
b3d62cefc7
Issue #17248 : Fix os.*chown() testing when user has group root.
2013-02-20 19:48:22 +02:00
Serhiy Storchaka
f0602062b6
Issue #15301 : Enhance os.*chown() testing. Based on patch by Larry Hastings.
2013-02-20 19:42:31 +02:00
Serhiy Storchaka
54db2fd5d0
Issue #15301 : Enhance os.*chown() testing. Based on patch by Larry Hastings.
2013-02-20 19:40:25 +02:00
Ezio Melotti
5a9ce077e0
#17143 : fix buildbot failures on Windows.
2013-02-20 02:52:49 +02:00
R David Murray
6cd6f01556
Merge: #13700 : Make imap.authenticate with authobject work.
...
This fixes a bytes/string confusion in the API which prevented
custom authobjects from working at all.
Original patch by Erno Tukia.
2013-02-19 12:19:13 -05:00
R David Murray
774a39f26e
#13700 : Make imap.authenticate with authobject work.
...
This fixes a bytes/string confusion in the API which prevented
custom authobjects from working at all.
Original patch by Erno Tukia.
2013-02-19 12:17:31 -05:00
Serhiy Storchaka
41d4ebbf43
Disable posixpath.realpath() tests on Windows (fix for issue #6975 ).
2013-02-18 13:33:13 +02:00
Serhiy Storchaka
1548ed6698
Disable posixpath.realpath() tests on Windows (fix for issue #6975 ).
2013-02-18 13:32:30 +02:00
Serhiy Storchaka
407aa2df2a
Fix posixpath.realpath() for multiple pardirs (fixes issue #6975 ).
2013-02-18 12:21:30 +02:00
Serhiy Storchaka
467393dff5
Fix posixpath.realpath() for multiple pardirs (fixes issue #6975 ).
2013-02-18 12:21:04 +02:00
Serhiy Storchaka
b0c75a7dec
Issue #9669 : Protect re against infinite loops on zero-width matching in
...
non-greedy repeat. Patch by Matthew Barnett.
2013-02-16 21:25:05 +02:00
Serhiy Storchaka
fa46816915
Issue #9669 : Protect re against infinite loops on zero-width matching in
...
non-greedy repeat. Patch by Matthew Barnett.
2013-02-16 21:23:53 +02:00
Serhiy Storchaka
a0eb809995
Issue #13169 : The maximal repetition number in a regular expression has been
...
increased from 65534 to 2147483647 (on 32-bit platform) or 4294967294 (on
64-bit).
2013-02-16 16:54:33 +02:00
Serhiy Storchaka
70ca0210e8
Issue #13169 : The maximal repetition number in a regular expression has been
...
increased from 65534 to 2147483647 (on 32-bit platform) or 4294967294 (on
64-bit).
2013-02-16 16:47:47 +02:00
Ezio Melotti
23e043fdcd
#17143 : fix a missing import in the trace module. Initial patch by Berker Peksag.
2013-02-15 21:20:50 +02:00
Ezio Melotti
3a03d2eaef
#17163 : test_file now works with unittest test discovery. Patch by Zachary Ware.
2013-02-15 19:17:53 +02:00
Richard Oudkerk
6d40134eba
Merge
2013-02-13 12:32:32 +00:00
Richard Oudkerk
0d09ba8e0b
Issue #16743 : Fix mmap overflow check on 32 bit Windows
2013-02-13 12:18:03 +00:00
Serhiy Storchaka
40f42d95f5
Cleanup a test for issue #5308 .
2013-02-13 12:32:24 +02:00
Serhiy Storchaka
5a1f152d19
Issue #5308 : Raise ValueError when marshalling too large object (a sequence
...
with size >= 2**31), instead of producing illegal marshal data.
2013-02-13 12:11:03 +02:00
Serhiy Storchaka
7e0191170e
Issue #5308 : Raise ValueError when marshalling too large object (a sequence
...
with size >= 2**31), instead of producing illegal marshal data.
2013-02-13 12:08:15 +02:00
Serhiy Storchaka
ff7fef9601
Issue #16800 : tempfile.gettempdir() no longer left temporary files when
...
the disk is full. Original patch by Amir Szekely.
2013-02-13 00:37:29 +02:00
Serhiy Storchaka
f6b361ec1a
Issue #16800 : tempfile.gettempdir() no longer left temporary files when
...
the disk is full. Original patch by Amir Szekely.
2013-02-13 00:35:30 +02:00
Serhiy Storchaka
e4ad8aacd1
Issue #4591 : Uid and gid values larger than 2**31 are supported now.
2013-02-12 09:24:16 +02:00
Serhiy Storchaka
55e2238272
Raise KeyError instead of OverflowError when getpwuid's argument is out of
...
uid_t range.
2013-02-11 20:32:47 +02:00
R David Murray
66383b2e0a
Merge: #17171 : fix email.encoders.encode_7or8bit when applied to binary data.
2013-02-11 10:53:35 -05:00
R David Murray
0b61d3c0f2
Merge: #17064 : fix sporadic permission errors in test_mailbox on windows.
...
Patch by Jeremy Kloth.
2013-02-11 10:05:03 -05:00
R David Murray
b3e8384cbe
#17064 : fix sporadic permission errors in test_mailbox on windows.
...
Patch by Jeremy Kloth.
2013-02-11 10:04:26 -05:00
Serhiy Storchaka
7cf5599346
Issue #4591 : Uid and gid values larger than 2**31 are supported now.
2013-02-10 21:56:49 +02:00
Serhiy Storchaka
ac99576a8e
Issue #17141 : random.vonmisesvariate() no more hangs for large kappas.
2013-02-10 19:29:20 +02:00
Serhiy Storchaka
6c22b1d760
Issue #17141 : random.vonmisesvariate() no more hangs for large kappas.
2013-02-10 19:28:56 +02:00
Serhiy Storchaka
801d955f04
Issue #12983 : Bytes literals with invalid \x escape now raise a SyntaxError
...
and a full traceback including line number.
2013-02-10 17:42:01 +02:00
Serhiy Storchaka
5e61f14c6d
Issue #12983 : Bytes literals with invalid \x escape now raise a SyntaxError
...
and a full traceback including line number.
2013-02-10 17:36:00 +02:00
Mark Dickinson
6427358501
Issue #17149 : merge fix from 3.2.
2013-02-10 14:16:56 +00:00
Mark Dickinson
be5f91957f
Issue #17149 : Fix random.vonmisesvariate to always return results in [0, 2*math.pi].
2013-02-10 14:16:10 +00:00
Serhiy Storchaka
bf95c143a2
Fix a test for SpooledTemporaryFile (added in issue #10355 ).
2013-02-10 14:44:14 +02:00
Serhiy Storchaka
497cee456c
Fix a test for SpooledTemporaryFile (added in issue #10355 ).
2013-02-10 14:43:46 +02:00
Serhiy Storchaka
9fef188c9e
Issue #1470548 : XMLGenerator now works with binary output streams.
2013-02-10 14:31:07 +02:00
Serhiy Storchaka
88efc52d74
Issue #1470548 : XMLGenerator now works with binary output streams.
2013-02-10 14:29:52 +02:00
Serhiy Storchaka
d83c82440b
Issue #6975 : os.path.realpath() now correctly resolves multiple nested symlinks on POSIX platforms.
2013-02-10 12:23:10 +02:00
Serhiy Storchaka
df32691e6f
Issue #6975 : os.path.realpath() now correctly resolves multiple nested symlinks on POSIX platforms.
2013-02-10 12:22:07 +02:00
Serhiy Storchaka
7451a72e2b
Issue #17169 : Restore errno in tempfile exceptions.
2013-02-09 22:25:49 +02:00
R David Murray
6cb1d67eb3
Merge: #16564 : Fix regression in use of encoders.encode_noop with binary data.
2013-02-09 13:10:54 -05:00
Serhiy Storchaka
33182807f8
Issue #10355 : SpooledTemporaryFile properties now work for unrolled files.
...
Remove obsoleted xreadline method.
2013-02-09 12:21:52 +02:00
Serhiy Storchaka
bbbbe8eb60
Issue #10355 : SpooledTemporaryFile properties now work for unrolled files.
...
Remove obsoleted xreadline method.
2013-02-09 12:21:14 +02:00
Serhiy Storchaka
8135de80f7
Issue #16686 : Fixed a lot of bugs in audioop module.
...
* avgpp() and maxpp() no more crash on empty and 1-samples input fragment. They now work when peak-peak values are greater INT_MAX.
* ratecv() no more crashes on empty input fragment.
* Fixed an integer overflow in ratecv().
* Fixed an integer overflow in add() and bias() for 32-bit samples.
* reverse(), lin2lin() and ratecv() no more lose precision for 32-bit samples.
* max() and rms() no more returns negative result for 32-bit sample -0x80000000.
* minmax() now returns correct max value for 32-bit sample -0x80000000.
* avg(), mul(), tomono() and tostereo() now round negative result down and can return 32-bit sample -0x80000000.
* add() now can return 32-bit sample -0x80000000.
2013-02-09 11:12:36 +02:00
Serhiy Storchaka
01ad622a2c
Issue #16686 : Fixed a lot of bugs in audioop module.
...
* avgpp() and maxpp() no more crash on empty and 1-samples input fragment. They now work when peak-peak values are greater INT_MAX.
* ratecv() no more crashes on empty input fragment.
* Fixed an integer overflow in ratecv().
* Fixed an integer overflow in add() and bias() for 32-bit samples.
* reverse(), lin2lin() and ratecv() no more lose precision for 32-bit samples.
* max() and rms() no more returns negative result for 32-bit sample -0x80000000.
* minmax() now returns correct max value for 32-bit sample -0x80000000.
* avg(), mul(), tomono() and tostereo() now round negative result down and can return 32-bit sample -0x80000000.
* add() now can return 32-bit sample -0x80000000.
2013-02-09 11:10:53 +02:00
Serhiy Storchaka
70ea7fa6e5
Fix accidental non-breakable spaces (U+00A0).
2013-02-08 11:24:16 +02:00
Serhiy Storchaka
1273dfc39c
Fix accidental non-breakable spaces (U+00A0).
2013-02-08 11:22:05 +02:00
Victor Stinner
bbbac2ec34
Issue #17137 : When an Unicode string is resized, the internal wide character
...
string (wstr) format is now cleared.
2013-02-07 23:12:46 +01:00
Serhiy Storchaka
cf0904ff65
Issue #17118 : Add new tests for testing Python-Tcl interaction.
2013-02-07 15:40:26 +02:00
Serhiy Storchaka
df4bb46457
Issue #17118 : Add new tests for testing Python-Tcl interaction.
2013-02-07 15:40:03 +02:00
R David Murray
cd74322dad
Merge: #17142 : fix apparent copy and paste error in test_all.
2013-02-06 09:57:51 -05:00
R David Murray
1acaf0bce2
#17142 : fix apparent copy and paste error in test_all.
2013-02-06 09:56:19 -05:00
Serhiy Storchaka
b6c86fd87f
Issue #16723 : httplib.HTTPResponse no longer marked closed when the connection
...
is automatically closed.
2013-02-06 10:35:40 +02:00
Serhiy Storchaka
b5b9c8cd40
Issue #16723 : httplib.HTTPResponse no longer marked closed when the connection
...
is automatically closed.
2013-02-06 10:31:57 +02:00
R David Murray
e201e9d584
Merge: #16948 : Fix quopri encoding of non-latin1 character sets.
2013-02-05 10:55:27 -05:00
Hynek Schlawack
0beab058dd
#17076 : Make copying of xattrs more permissive of missing FS support
...
Patch by Thomas Wouters.
2013-02-05 08:22:44 +01:00
R David Murray
844b0e6971
#16811 : Fix folding of headers with no value in provisional policies.
2013-02-04 15:22:53 -05:00
Serhiy Storchaka
36b365ccff
Issue #17089 : Expat parser now correctly works with string input not only when
...
an internal XML encoding is UTF-8 or US-ASCII. It now accepts bytes and
strings larger than 2 GiB.
2013-02-04 18:28:01 +02:00
Serhiy Storchaka
43536e9e37
Issue #17089 : Expat parser now correctly works with string input not only when
...
an internal XML encoding is UTF-8 or US-ASCII. It now accepts bytes and
strings larger than 2 GiB.
2013-02-04 18:26:15 +02:00
Serhiy Storchaka
db1ba4eeac
Fix test_tools hangs on Windows. Patch by Jeremy Kloth.
2013-02-04 16:55:59 +02:00
Serhiy Storchaka
b3f194d109
Issue #16903 : Popen.communicate() on Unix now accepts strings when
...
universal_newlines is true as on Windows.
2013-02-04 16:47:39 +02:00
Serhiy Storchaka
8b27f23e02
Do not raise self.skipTest().
...
skipTest() already raises an exception.
2013-02-04 15:45:58 +02:00
Serhiy Storchaka
0b4591e0eb
Do not raise self.skipTest().
...
skipTest() already raises an exception.
2013-02-04 15:45:00 +02:00
Serhiy Storchaka
1d0bb9c8f9
Issue #6083 : Fix multiple segmentation faults occured when PyArg_ParseTuple
...
parses nested mutating sequence.
2013-02-04 12:54:04 +02:00
Serhiy Storchaka
19c4e0df29
Issue #6083 : Fix multiple segmentation faults occured when PyArg_ParseTuple
...
parses nested mutating sequence.
2013-02-04 12:47:24 +02:00
Brett Cannon
7a34f02f9e
Way too many places create modules temporarily that never set
...
__loader__ for this test to succeed without a major changes. It also
doesn't test the original issue of modules imported by Py_Initialize()
having __loader__ set (the rest of the test covers that).
2013-02-03 16:16:07 -05:00
Brett Cannon
2fb00bb5d3
merge
2013-02-03 11:39:02 -05:00
Brett Cannon
9de80ac127
pyexpat/xml.parsers.expat create their errors and model modules from
...
scratch. This means they do not set __loader__ by default. This is
acceptable under importlib/PEP 302 definitions, so relax the test that
was trying to apply this universally.
2013-02-03 11:37:13 -05:00
Serhiy Storchaka
d03ce4ae3d
Issue #17106 : Fix a segmentation fault in io.TextIOWrapper when an underlying
...
stream or a decoder produces data of an unexpected type (i.e. when
io.TextIOWrapper initialized with text stream or use bytes-to-bytes codec).
2013-02-03 17:07:32 +02:00
Serhiy Storchaka
94dc6736bd
Issue #17106 : Fix a segmentation fault in io.TextIOWrapper when an underlying
...
stream or a decoder produces data of an unexpected type (i.e. when
io.TextIOWrapper initialized with text stream or use bytes-to-bytes codec).
2013-02-03 17:03:31 +02:00
Gregory P. Smith
09aa752067
Refactor recently added bugfix into more testable code by using a
...
method for windows file name sanitization. Splits the unittest up
into several based on platform.
2013-02-03 00:36:32 -08:00
Ned Deily
6d29628d6b
Issue #16698 : merge from 3.2
2013-02-02 15:12:59 -08:00
Ned Deily
028915e6ea
Issue #16698 : Skip posix test_getgroups when built with OS X
...
deployment target prior to 10.6.
2013-02-02 15:08:52 -08:00
Antoine Pitrou
6a35e18161
Issue #15633 : httplib.HTTPResponse is now mark closed when the server sends less than the advertised Content-Length.
2013-02-02 23:04:56 +01:00
Antoine Pitrou
beec61ae4e
Issue #15633 : httplib.HTTPResponse is now mark closed when the server sends less than the advertised Content-Length.
2013-02-02 22:49:34 +01:00
Nadeem Vawda
c27bcbf863
Back out fix for issue #13886 ; it introduced a new bug in interactive readline use.
2013-02-02 20:25:19 +01:00
Nadeem Vawda
6375257188
Back out fix for issue #13886 ; it introduced a new bug in interactive readline use.
2013-02-02 20:05:11 +01:00
Serhiy Storchaka
672671da47
Fix the test for issue #6972 .
...
Remove trailing dots on Windows.
2013-02-02 19:51:37 +02:00
Serhiy Storchaka
e5e6444497
Fix the test for issue #6972 .
...
Remove trailing dots on Windows.
2013-02-02 19:50:59 +02:00
Serhiy Storchaka
e080a7a5d4
Fix tests for issue #11159 .
2013-02-02 12:17:30 +02:00
Serhiy Storchaka
1a4ed4ce18
Fix tests for issue #11159 .
2013-02-02 12:17:05 +02:00
Serhiy Storchaka
efbf40f9e1
Issue #11159 : Add tests for testing SAX parser support of non-ascii file names.
2013-02-02 10:31:50 +02:00
Serhiy Storchaka
d52023968a
Issue #11159 : Add tests for testing SAX parser support of non-ascii file names.
2013-02-02 10:31:17 +02:00
Brett Cannon
addebca751
merge
2013-02-01 16:37:07 -05:00
Brett Cannon
da9cf0eef8
Issue #17098 : Be more stringent of setting __loader__ on early imported
...
modules. Also made test more rigorous.
2013-02-01 15:31:49 -05:00
Brett Cannon
e7387b4708
Add a test for fix of issue #17098
2013-02-01 14:43:59 -05:00
Gregory P. Smith
193e1be72d
Fixes Issue #6972 : The zipfile module no longer overwrites files outside of
...
its destination path when extracting malicious zip files.
2013-02-01 11:31:31 -08:00
Gregory P. Smith
b47acbf46a
Fixes Issue #6972 : The zipfile module no longer overwrites files outside of
...
its destination path when extracting malicious zip files.
2013-02-01 11:22:43 -08:00
Serhiy Storchaka
3ff4571af3
Issue #17041 : Fix doctesting when Python is configured with the
...
--without-doc-strings.
2013-01-31 16:11:28 +02:00
Serhiy Storchaka
9a11f17673
Issue #17041 : Fix doctesting when Python is configured with the
...
--without-doc-strings.
2013-01-31 16:11:04 +02:00
Serhiy Storchaka
cc9e5369d3
Added test to ensure localized calendar methods return strings and not bytes.
2013-01-31 16:01:21 +02:00
Serhiy Storchaka
f9fcdb7e90
Added test to ensure localized calendar methods return strings and not bytes.
2013-01-31 16:00:42 +02:00
Serhiy Storchaka
d72bfe9eb9
Issue #4844 : ZipFile now raises BadZipFile when opens a ZIP file with an
...
incomplete "End of Central Directory" record. Original patch by Guilherme
Polo and Alan McIntyre.
2013-01-31 15:29:20 +02:00
Serhiy Storchaka
d2b1527f14
Issue #4844 : ZipFile now raises BadZipFile when opens a ZIP file with an
...
incomplete "End of Central Directory" record. Original patch by Guilherme
Polo and Alan McIntyre.
2013-01-31 15:27:07 +02:00
Ned Deily
fc20d77b40
Issue #13590 : OS X Xcode 4 - improve support for universal extension modules
...
In particular, fix extension module build failures when trying to use
32-bit-only installer Pythons on systems with Xcode 4 (currently
OS X 10.8, 10.7, and optionally 10.6).
* Backport 3.3.0 fixes to 3.2 branch (for release in 3.2.4)
* Since Xcode 4 removes ppc support, extension module builds now
check for ppc compiler support and by default remove ppc and
ppc64 archs when they are not available.
* Extension module builds now revert to using system installed
headers and libs (/usr and /System/Library) if the SDK used
to build the interpreter is not installed or has moved.
* Try to avoid building extension modules with deprecated
and problematic Apple llvm-gcc compiler. If original compiler
is not available, use clang instead by default.
2013-01-31 01:28:23 -08:00
Antoine Pitrou
bd41d1b14c
Issue #17071 : Signature.bind() now works when one of the keyword arguments is named ``self``.
2013-01-29 21:20:57 +01:00
Serhiy Storchaka
c5b75db5de
Issue #12004 : Fix an internal error in PyZipFile when writing an invalid
...
Python file. Patch by Ben Morgan.
2013-01-29 20:14:08 +02:00
Serhiy Storchaka
45c4375ea7
Issue #12004 : Fix an internal error in PyZipFile when writing an invalid
...
Python file. Patch by Ben Morgan.
2013-01-29 20:10:28 +02:00
Serhiy Storchaka
799fd9c877
Add tests for raw-unicode-escape codec.
2013-01-29 11:41:01 +02:00
Serhiy Storchaka
c9c4338e2b
Add tests for raw-unicode-escape codec.
2013-01-29 11:40:00 +02:00
Serhiy Storchaka
db6add7d71
Clean up escape-decode decoder tests.
2013-01-29 11:07:27 +02:00
Serhiy Storchaka
077cb347a9
Clean up escape-decode decoder tests.
2013-01-29 11:06:53 +02:00
Serhiy Storchaka
24193debd4
Issue #16979 : Fix error handling bugs in the unicode-escape-decode decoder.
2013-01-29 10:28:07 +02:00
Serhiy Storchaka
d679377be7
Issue #16979 : Fix error handling bugs in the unicode-escape-decode decoder.
2013-01-29 10:20:44 +02:00
Serhiy Storchaka
a4fdd599e2
Fix skip conditions in some docstings tests.
2013-01-28 13:26:25 +02:00
Serhiy Storchaka
8e0ae2a4f0
Fix skip conditions in some docstings tests.
2013-01-28 13:25:44 +02:00
Serhiy Storchaka
26f1166510
Issue #17041 : Fix testing when Python is configured with the
...
--without-doc-strings.
2013-01-27 20:03:39 +02:00
Serhiy Storchaka
9d0add0c7e
Issue #17041 : Fix testing when Python is configured with the
...
--without-doc-strings.
2013-01-27 19:47:45 +02:00
Nadeem Vawda
60cc32382f
Issue #13886 : Fix input() to not strip out supposedly-invalid input bytes.
...
Also fix sporadic failures in test_builtin due to dependence on whether the
readline module has previously been imported.
2013-01-27 14:13:25 +01:00
Nadeem Vawda
6f02ea02c8
Issue #13886 : Fix input() to not strip out supposedly-invalid input bytes.
...
Also fix sporadic failures in test_builtin due to dependence on whether the
readline module has previously been imported.
2013-01-27 14:01:42 +01:00
Ezio Melotti
3f5db3940f
Fix a few typos and a double semicolon. Patch by Eitan Adler.
2013-01-27 06:20:14 +02:00
Stefan Krah
fb931902c8
Fix test_pydoc for build --without-doc-strings.
2013-01-26 13:57:15 +01:00
Stefan Krah
6e572b8b2e
Adapt test_bytes for a build --without-doc-strings.
2013-01-26 13:06:36 +01:00
Serhiy Storchaka
1c7181d764
Optimize the test for issue #13454 .
...
Now it requires almost 4x less memory and is almost 2x faster.
2013-01-26 11:53:17 +02:00
Serhiy Storchaka
5bb893c44b
Optimize the test for issue #13454 .
...
Now it requires almost 4x less memory and is almost 2x faster.
2013-01-26 11:52:06 +02:00
Serhiy Storchaka
e58785b200
Issue #16975 : Fix error handling bug in the escape-decode bytes decoder.
2013-01-25 23:32:41 +02:00
Serhiy Storchaka
ace3ad3bf7
Issue #16975 : Fix error handling bug in the escape-decode bytes decoder.
2013-01-25 23:31:43 +02:00
Serhiy Storchaka
339e91d4cb
Issue #13454 : Fix a crash when deleting an iterator created by itertools.tee()
...
if all other iterators were very advanced before.
2013-01-25 13:24:47 +02:00
Serhiy Storchaka
a3e9128aba
Issue #13454 : Fix a crash when deleting an iterator created by itertools.tee()
...
if all other iterators were very advanced before.
2013-01-25 13:19:31 +02:00
Serhiy Storchaka
5070c27a8f
Increase the memory limit in the test for issue #16335 .
2013-01-25 10:13:37 +02:00
Serhiy Storchaka
2f2dd992a3
Increase the memory limit in the test for issue #16335 .
2013-01-25 10:12:30 +02:00
Serhiy Storchaka
d70127ac54
Fix pathext test for shutil.which() which was
...
broken after applying the patch for issue #16957 .
2013-01-24 20:03:49 +02:00
Eli Bendersky
48df2eb965
merge heads
2013-01-24 07:17:05 -08:00
Eli Bendersky
aaa9780fe1
Issue #9708 : Fix support for iterparse(parser=...) argument per documentation.
...
When _elementtree is imported, iterparse is redefined as a class and the parser
argument was ommitted. Fix this, and add a docstring to the class.
2013-01-24 07:15:19 -08:00
Stefan Krah
eb8c451bd2
Since the return type of format() is not a Decimal, raise ValueError instead of
...
InvalidOperation if the format specification (width, prec) exceeds the internal
limits of libmpdec.
2013-01-24 15:22:33 +01:00
Senthil Kumaran
c1a7c565aa
merge from 3.2
...
Issue #12411 : Fix to cgi.parse_multipart to correctly use bytes boundaries and
bytes data. Patch by Jonas Wagner.
2013-01-23 03:00:26 -08:00
Senthil Kumaran
6b102f251f
Issue #12411 : Fix to cgi.parse_multipart to correctly use bytes boundaries and
...
bytes data. Patch by Jonas Wagner.
2013-01-23 02:50:15 -08:00
Serhiy Storchaka
8bea200b98
Issue #16957 : shutil.which() no longer searches a bare file name in the
...
current directory on Unix and no longer searches a relative file path with
a directory part in PATH directories. Patch by Thomas Kluyver.
2013-01-23 10:44:21 +02:00
Serhiy Storchaka
57f9b7a124
Issue #1159051 : GzipFile now raises EOFError when reading a corrupted file
...
with truncated header or footer.
Added tests for reading truncated gzip, bzip2, and lzma files.
2013-01-22 17:07:49 +02:00
Serhiy Storchaka
7c3922f44c
Issue #1159051 : GzipFile now raises EOFError when reading a corrupted file
...
with truncated header or footer.
Added tests for reading truncated gzip and bzip2 files.
2013-01-22 17:01:59 +02:00
Eli Bendersky
a80f761a6d
Add some tests for XPath numeric indexing
2013-01-22 06:12:54 -08:00
Serhiy Storchaka
80c88f4304
Fix shutil.which() test for issue #16993 .
2013-01-22 10:31:36 +02:00
Serhiy Storchaka
529230142f
Use bigmemtest decorator for test of issue #16335 .
2013-01-21 20:27:17 +02:00
Serhiy Storchaka
e45dac4ea9
Add bigmemtest decorator to test of issue #16335 .
2013-01-21 20:23:58 +02:00
Serhiy Storchaka
014791f848
Issue #16993 : shutil.which() now preserves the case of the path and extension
...
on Windows.
2013-01-21 15:00:27 +02:00
Serhiy Storchaka
85da624ebe
Fix memory error in test_ucn.
...
unicode-escape decoder requires memory for result corresponding to input size.
Fixes test for issue #16335 .
2013-01-21 13:00:11 +02:00
Serhiy Storchaka
3b40b71217
Fix memory error in test_ucn.
...
unicode-escape decoder requires memory for result corresponding to input size.
Fixes test for issue #16335 .
2013-01-21 12:59:13 +02:00
Serhiy Storchaka
c35f3a9f61
Issue #16335 : Fix integer overflow in unicode-escape decoder.
2013-01-21 11:42:57 +02:00
Serhiy Storchaka
4f5f0e54e0
Issue #16335 : Fix integer overflow in unicode-escape decoder.
2013-01-21 11:38:00 +02:00
Serhiy Storchaka
441d30fac7
Issue #15989 : Fix several occurrences of integer overflow
...
when result of PyLong_AsLong() narrowed to int without checks.
This is a backport of changesets 13e2e44db99d and 525407d89277.
2013-01-19 12:26:26 +02:00
Antoine Pitrou
b24d0d984c
Remove outdated statement
2013-01-17 23:08:03 +01:00
Serhiy Storchaka
9101e23ff6
Issue #15989 : Fix several occurrences of integer overflow
...
when result of PyLong_AsLong() narrowed to int without checks.
This is a backport of changesets 13e2e44db99d and 525407d89277.
2013-01-19 12:41:45 +02:00
Benjamin Peterson
c68a4a048c
check windows fd validity ( closes #16992 )
2013-01-18 00:10:24 -05:00
Stefan Krah
fc4aa76d59
Issue #11870 : Skip test_3_join_in_forked_from_thread() on HP-UX.
2013-01-17 23:29:54 +01:00
Antoine Pitrou
175df1eeec
Remove outdated statement
2013-01-17 23:08:26 +01:00
Stefan Krah
ebee49a487
Issue #14110 : Fix test failures on FreeBSD if the user is in the wheel group.
2013-01-17 15:31:00 +01:00
Frank Wierzbicki
bf0da6d68b
Use unittest.main() in 3.3 and greater
2013-01-16 14:09:57 -08:00
Frank Wierzbicki
fb3bd161cb
#16886 : merge with 3.2
2013-01-16 13:56:54 -08:00
Frank Wierzbicki
809067c3c5
Closed #16886 : test_dictcomps no longer depends on dict order
2013-01-16 13:55:12 -08:00
Stefan Krah
59a4a93f43
Issue #16422 : Use strings for rounding mode constants for better readability
...
and pickling compatibility.
2013-01-16 12:58:59 +01:00
Serhiy Storchaka
45d16d9924
Issue #14850 : Now a chamap decoder treates U+FFFE as "undefined mapping"
...
in any mapping, not only in an unicode string.
2013-01-15 15:01:20 +02:00
Serhiy Storchaka
4fb8caee87
Issue #14850 : Now a chamap decoder treates U+FFFE as "undefined mapping"
...
in any mapping, not only in an unicode string.
2013-01-15 14:43:21 +02:00
Giampaolo Rodola'
67da89446a
fix for previous commit related to issue 10527 which didn't have the intended effect as per http://bugs.python.org/issue10527#msg179895
2013-01-14 02:24:25 +01:00
Richard Oudkerk
ed9e06cb21
Issue #16955 : Fix the poll() method for multiprocessing's socket
...
connections on Windows.
2013-01-13 22:46:48 +00:00
Eli Bendersky
25771b3749
Issue #16922 : fixed findtext() to return empty Unicode string instead of empty bytes object when there's no text.
...
Patch by Serhiy Storchaka.
2013-01-13 05:26:07 -08:00
Eli Bendersky
b09b167419
Issue #16922 : fixed findtext() to return empty Unicode string instead of empty bytes object when there's no text.
...
Patch by Serhiy Storchaka.
2013-01-13 05:22:05 -08:00
Charles-François Natali
c78de46912
Fix test_posix failure on NetBSD buildbots: sched_setparam() and
...
sched_setscheduler() can fail with EINVAL if the process scheduling policy is
neither SCHED_FIFO nor SCHED_RR.
2013-01-13 14:10:37 +01:00
Charles-François Natali
1ea12ff04d
test_asyncore: wait explicitly for a thread termination (this dangling thread
...
could be the cause of a random failure).
2013-01-13 14:08:01 +01:00
Charles-François Natali
ce1519d250
test_asyncore: wait explicitly for a thread termination (this dangling thread
...
could be the cause of a random failure).
2013-01-13 13:56:52 +01:00
Antoine Pitrou
db5012ab47
In test_ssl, threaded tests shouldn't need the "network" resource to be enabled
2013-01-12 22:00:09 +01:00
Antoine Pitrou
e1ceb50cdf
Issue #16923 : Fix ResourceWarnings in test_ssl.
2013-01-12 21:54:44 +01:00
Charles-François Natali
dbc744ac74
Issue #16762 : Fix some test_subprocess failures on NetBSD and OpenBSD: kill()
...
returns ESRCH for a zombie process, which is not POSIX-compliant.
2013-01-12 16:54:45 +01:00
Charles-François Natali
53221e371d
Issue #16762 : Fix some test_subprocess failures on NetBSD and OpenBSD: kill()
...
returns ESRCH for a zombie process, which is not POSIX-compliant.
2013-01-12 16:52:20 +01:00
Eli Bendersky
c31f77355c
clean trailing whitespace
2013-01-12 07:44:32 -08:00
Eli Bendersky
ceab1a950b
Issues #15083 and #16992 : port find.* method tests to unittest
2013-01-12 07:42:46 -08:00
Brett Cannon
ed6b4c0020
merge
2013-01-11 15:44:00 -05:00
Brett Cannon
a9976b3e32
Issue #16730 : Don't raise an exception in
...
importlib.machinery.FileFinder when the directory has become
unreadable or a file. This brings semantics in line with Python 3.2
import.
Reported and diagnosed by David Pritchard.
2013-01-11 15:40:12 -05:00
Serhiy Storchaka
b4fb2e2aac
Issue #15539 : Fix a backup file creation in pindent.py on Windows.
2013-01-11 22:19:07 +02:00
Serhiy Storchaka
a3a01b6ac3
Issue #15539 : Fix a backup file creation in pindent.py on Windows.
2013-01-11 22:18:17 +02:00
Serhiy Storchaka
40ce22edb5
Issue #15539 : Fix a number of bugs in Tools/scripts/pindent.py.
...
Now pindent.py works with a "with" statement. pindent.py no longer produces
improper indentation. pindent.py now works with continued lines broken after
"class" or "def" keywords and with continuations at the start of line. Added
regression tests for pindent.py. Modernized pindent.py.
2013-01-11 12:10:57 +02:00
Serhiy Storchaka
6840a54ad4
Issue #15539 : Fix a number of bugs in Tools/scripts/pindent.py.
...
Now pindent.py works with a "with" statement. pindent.py no longer produces
improper indentation. pindent.py now works with continued lines broken after
"class" or "def" keywords and with continuations at the start of line. Added
regression tests for pindent.py. Modernized pindent.py.
2013-01-11 12:04:23 +02:00
Ezio Melotti
adfbb8e8ec
#13899 : merge with 3.2.
2013-01-11 08:43:53 +02:00
Ezio Melotti
fe8e6e7414
#13899 : \A, \Z, and \B now correctly match the A, Z, and B literals when used inside character classes (e.g. [A]). Patch by Matthew Barnett.
2013-01-11 08:32:01 +02:00
Ezio Melotti
dc1fa80b6c
#16925 : test_configparser now works with unittest test discovery. Patch by Zachary Ware.
2013-01-11 06:30:57 +02:00
Ezio Melotti
5d3dba0d27
#16918 : test_codecs now works with unittest test discovery. Patch by Zachary Ware.
2013-01-11 06:02:07 +02:00
Ezio Melotti
e0b87edd7f
Merge fix for broken/disabled test.
2013-01-11 05:57:58 +02:00
Ezio Melotti
26ed234052
Enable a broken test and fix it.
2013-01-11 05:54:57 +02:00
Ezio Melotti
90bbbd1164
#16919 : test_crypt now works with unittest test discovery. Patch by Zachary Ware.
2013-01-11 05:18:45 +02:00
Benjamin Peterson
36f7b97787
remove __del__ because it's evil and also prevents the ResourceWarning on the socket from happening ( closes #16900 )
2013-01-10 14:16:20 -06:00
Eli Bendersky
e6174ca85e
Issue #16913 : Fix Element.itertext()'s handling of text with XML entities.
...
Patch by Serhiy Storchaka
2013-01-10 06:27:53 -08:00
Eli Bendersky
458c0d5a77
normalize whitespace
2013-01-10 06:07:00 -08:00
Eli Bendersky
698bdb2a6c
Issue #16076 : make _elementtree.Element pickle-able in a way that is compatible
...
with the Python version of the class.
Patch by Daniel Shahaf.
2013-01-10 06:01:06 -08:00
Ezio Melotti
0dceb560b6
#16910 : test_bytes, test_unicode, and test_userstring now work with unittest test discovery. Patch by Zachary Ware.
2013-01-10 07:43:26 +02:00
Ezio Melotti
2688e81064
#16905 : test_bufio now works with unittest test discovery. Initial patch by Berker Peksag.
2013-01-10 06:52:23 +02:00
Ezio Melotti
b21af554ee
#16898 : test_bufio now works with unittest test discovery. Patch by Zachary Ware.
2013-01-10 06:11:34 +02:00
Ezio Melotti
1d3e96dbe2
#16888 : test_array now works with unittest test discovery. Patch by Zachary Ware.
2013-01-10 06:04:50 +02:00
Ezio Melotti
47236db1d0
#16896 : test_asyncore now works with unittest test discovery. Patch by Zachary Ware.
2013-01-10 05:28:52 +02:00
Ezio Melotti
f472a90d31
#16897 : test_bisect now works with unittest test discovery. Initial patch by Zachary Ware.
2013-01-10 04:32:01 +02:00
Ezio Melotti
d0dfe9ad46
#16852 : test_genericpath, test_posixpath, test_ntpath, and test_macpath now work with unittest test discovery. Patch by Zachary Ware.
2013-01-10 03:12:50 +02:00
Serhiy Storchaka
369a7822d6
Issue #16843 : Make concurrent tests for sched module deterministic.
2013-01-09 00:13:38 +02:00
Serhiy Storchaka
ae3b32ad6b
Issue #11461 : Fix the incremental UTF-16 decoder. Original patch by
...
Amaury Forgeot d'Arc. Added tests for partial decoding of non-BMP
characters.
2013-01-08 23:40:52 +02:00
Serhiy Storchaka
48e188e573
Issue #11461 : Fix the incremental UTF-16 decoder. Original patch by
...
Amaury Forgeot d'Arc. Added tests for partial decoding of non-BMP
characters.
2013-01-08 23:14:24 +02:00
Serhiy Storchaka
a2ad5c3ad1
Issue #15972 : Fix error messages when os functions expecting a file name or
...
file descriptor receive the incorrect type.
2013-01-07 23:13:46 +02:00
Eli Bendersky
a873690d2c
The get() and iter() are now able to accept keyword arguments.
...
In conformance with the documentation and the Python version.
Patch by Franck Michea.
2013-01-05 06:26:39 -08:00
Victor Stinner
269b3ce400
(Merge 3.2) Issue #16218 , #16414 , #16444 : Backport FS_NONASCII,
...
TESTFN_UNDECODABLE, TESTFN_NONASCII of test.support from Python 3.4. Backport
tests on non-ASCII paths.
2013-01-03 01:56:38 +01:00
Victor Stinner
0af71aae2d
Issue #16218 , #16414 , #16444 : Backport FS_NONASCII, TESTFN_UNDECODABLE,
...
TESTFN_NONASCII of test.support from Python 3.4. Backport tests on non-ASCII
paths.
2013-01-03 01:50:30 +01:00
Nadeem Vawda
57cb81d161
Issue #16828 : Fix error incorrectly raised by bz2.compress('').
...
Initial patch by Martin Packman.
2013-01-02 23:05:56 +01:00
Nadeem Vawda
638fb9bbed
Issue #16828 : Fix error incorrectly raised by bz2.compress('').
...
Patch by Martin Packman.
2013-01-02 23:02:00 +01:00
Ezio Melotti
22ebb2d6ef
#16748 : test_heapq now works with unittest test discovery.
2013-01-02 21:19:37 +02:00
Łukasz Langa
a2e7acd17d
configparser: preserve section order when using `__setitem__` (issue #16820 )
2013-01-01 23:45:33 +01:00
Victor Stinner
a25be07103
Issue #9644 : Add a test on os.statvfs() for the PEP 383
2013-01-01 23:11:21 +01:00
Victor Stinner
e4110dc11f
Issue #9644 : Fix the encoding used by os.statvfs(): use the filesystem encoding
...
with the surrogateescape error handler, instead of UTF-8 in strict mode.
2013-01-01 23:05:55 +01:00
Łukasz Langa
a821f82f66
configparser: preserve section order when using `__setitem__` (issue #16820 )
2013-01-01 22:33:19 +01:00
Giampaolo Rodola'
5051ca887c
Fix issue 10527: make multiprocessing use poll() instead of select() if available.
2012-12-31 17:38:17 +01:00
Giampaolo Rodola'
5e844c8052
Fix issue 10527: make multiprocessing use poll() instead of select() if available.
2012-12-31 17:23:09 +01:00
Łukasz Langa
0210194d48
Fixes `__setitem__` on parser['DEFAULT'] reported in issue #16820 .
2012-12-31 13:55:11 +01:00
Serhiy Storchaka
5da57027ef
Issue #16824 : Fix a failure guard in the never reached in the normal test execution code in test_pep380.
2012-12-31 11:31:41 +02:00
Łukasz Langa
0dc5ab41f0
Merged `parser.clean()` fix (issue #16820 ) from 3.2.
2012-12-31 03:41:54 +01:00
Łukasz Langa
3a8479a583
Fixes `parser.clean()` reported in issue #16820 .
2012-12-31 03:38:39 +01:00
Serhiy Storchaka
62c75f1e52
Issue #16645 : Fix hardlink extracting test for tarfile.
2012-12-30 20:17:28 +02:00
Serhiy Storchaka
88339c44f8
Issue #16645 : Fix hardlink extracting test for tarfile.
2012-12-30 20:16:30 +02:00
Eli Bendersky
52280c427a
Skip a test correctly for the C-version. The decorator doesn't really work
...
because it evaluates its condition before pyET is even set by test_main.
Therefore, the check it moved to "runtime".
2012-12-30 06:27:56 -08:00
Eli Bendersky
7ec45f7a36
For Issue #16076 : make sure that pickling of Element objects is tested, and do
...
it properly to avoid problems with test-run-order dependencies.
2012-12-30 06:17:49 -08:00
Serhiy Storchaka
c1b59d4552
Issue #16688 : Fix backreferences did make case-insensitive regex fail on non-ASCII strings.
...
Patch by Matthew Barnett.
2012-12-29 23:38:48 +02:00
Serhiy Storchaka
f1b63c6f0e
Issue #16485 : Fix file descriptor not being closed if file header patching fails on closing of aifc file.
2012-12-29 22:36:23 +02:00
Serhiy Storchaka
051722d554
Issue #16485 : Fix file descriptor not being closed if file header patching fails on closing of aifc file.
2012-12-29 22:30:56 +02:00
Serhiy Storchaka
f2b9cf4e61
Issue #16165 : Fix sched.scheduler.run() method was block a scheduler for
...
other threads.
2012-12-29 21:34:11 +02:00
Antoine Pitrou
6464b84b3e
Forward port new test for SSLSocket.connect_ex()
2012-12-28 19:08:49 +01:00
Antoine Pitrou
ddb87ab1b4
Forward port new test for SSLSocket.connect_ex()
2012-12-28 19:07:43 +01:00
Antoine Pitrou
40f12ab0c5
Backport Python 3.2 fix for issue #12065 , and add another test for SSLSocket.connect_ex().
2012-12-28 19:03:43 +01:00
Serhiy Storchaka
00e2843115
Issue #16761 : Raise TypeError when int() called with base argument only.
2012-12-28 10:02:42 +02:00
Serhiy Storchaka
0b386d5247
Issue #16761 : Raise TypeError when int() called with base argument only.
2012-12-28 09:42:11 +02:00
Serhiy Storchaka
cf095f8e0f
Issue #16761 : Raise TypeError when int() or long() called with base argument only.
2012-12-28 09:31:59 +02:00
Chris Jerdonek
28441e353c
Merge from 3.2: Issue #15324 : Fix regrtest --fromfile, --match, --randomize.
2012-12-27 18:25:54 -08:00
Chris Jerdonek
1e4bd53a34
Issue #15324 : Fix regrtest parsing of --fromfile, --match, and --randomize.
2012-12-27 18:16:32 -08:00
Chris Jerdonek
3684c79e00
Issue #15324 : Fix regrtest parsing of --fromfile and --randomize options.
2012-12-27 18:14:01 -08:00
Serhiy Storchaka
c90be30b0d
Issue #16792 : Use assertIs() to test identity.
2012-12-28 00:44:20 +02:00
Serhiy Storchaka
a29159b075
Issue #16793 . Replace deprecated unittest asserts with modern counterparts.
2012-12-28 00:34:57 +02:00
Serhiy Storchaka
8876145fab
Issue #16793 . Replace deprecated unittest asserts with modern counterparts.
2012-12-28 00:32:19 +02:00
Serhiy Storchaka
1ef73d21a2
Issue #16792 : Mark small ints test as CPython-only.
2012-12-28 00:16:53 +02:00
Serhiy Storchaka
3b3170447f
Issue #16792 : Mark small ints test as CPython-only.
2012-12-27 23:57:00 +02:00
Serhiy Storchaka
270767b2ce
Issue #16792 : Mark small ints test as CPython-only.
2012-12-27 23:07:00 +02:00
Chris Jerdonek
6f70fe8046
Issue #16790 : add some of the recent issue #16045 int tests to test_long.
...
This patch also provides a simple way to share tests going forward
between test_int and test_long.
2012-12-27 12:53:29 -08:00
Brian Curtin
33e05e7905
Fix #16759 . Convert DWORD registry values using unsigned long.
...
When converting REG_DWORD registry values into Python, the conversion
needs to be made from an *unsigned* long (k instead of i) to match the
DWORD type.
2012-12-27 14:37:06 -06:00
Brian Curtin
e6bfa2911a
Merge 3.2
2012-12-27 14:06:06 -06:00
Brian Curtin
172e42295f
Fix #16759 . Convert DWORD registry values using PyLong_FromUnsignedLong.
...
When converting REG_DWORD registry values into Python ints, the conversion
needs to be made from an *unsigned* long to match the DWORD type.
2012-12-27 14:04:42 -06:00
Brian Curtin
0e091b0365
Fix #14420 . Check for PyLong as well as PyInt when converting in Py2Reg.
...
This fixes a ValueError seen in winreg.SetValueEx when passed long
winreg.REG_DWORD values that should be supported by the underlying API.
2012-12-27 12:28:51 -06:00
Brian Curtin
62cf69ec7c
Merge 3.2
2012-12-27 10:14:30 -06:00
Brian Curtin
12706f2082
Fix #14420 . Use PyLong_AsUnsignedLong to support the full range of DWORD.
...
This fixes an OverflowError seen in winreg.SetValueEx when passed
winreg.REG_DWORD values that should be supported by the underlying API.
2012-12-27 10:12:45 -06:00
Hynek Schlawack
4a5a4c2808
#16618 : Add more glob regression tests
...
Mostly about symlinks and str/unicode behavior.
Patch by Serhiy Storchaka.
2012-12-27 10:24:21 +01:00
Hynek Schlawack
6f52027168
#16618 : Make glob.glob match consistently across strings and bytes
...
Fixes handling of leading dots.
Patch by Serhiy Storchaka.
2012-12-27 10:15:53 +01:00
Hynek Schlawack
e26568f812
#16618 : Make glob.glob match consistently across strings and bytes
...
Fixes handling of leading dots.
Patch by Serhiy Storchaka.
2012-12-27 10:10:11 +01:00
Andrew Svetlov
b172697cd8
fix test for subprocess ( #16644 )
2012-12-26 23:34:54 +02:00
Andrew Svetlov
57a1233110
fix test for subprocess ( #16644 )
2012-12-26 23:31:45 +02:00
Senthil Kumaran
00679a7ee0
Issue #16702 : Skip proxies for localhost in urllib2_localnet tests
2012-12-26 01:46:39 -08:00
Senthil Kumaran
303eb478f2
Issue #16702 : Skip proxies for localhost in urllib2_localnet tests
2012-12-26 01:45:58 -08:00
Senthil Kumaran
2f01e239cb
Issue #16702 : Skip proxies for localhost in urllib2_localnet tests
2012-12-26 01:45:22 -08:00
Kristján Valur Jónsson
2380feeff8
issue #879399
...
Fix line buffering of socket._fileobject
2012-12-25 13:04:50 +00:00
Andrew Svetlov
34dcdee177
Add test coverage for os.removedirs ( #16775 )
2012-12-25 12:20:39 +02:00
Andrew Svetlov
405faed511
Add test coverage for os.removedirs ( #16775 )
2012-12-25 12:18:09 +02:00
Senthil Kumaran
bd6667aae3
Fix issue16713 - tel url parsing with params
2012-12-24 14:01:13 -08:00
Senthil Kumaran
ed30199e78
Fix issue16713 - tel url parsing with params
2012-12-24 14:00:20 -08:00
Senthil Kumaran
1974baadc6
Fix issue16713 - tel url parsing with params
2012-12-24 13:56:54 -08:00
Mark Dickinson
9fade768c8
Issue #13863 : fix incorrect .pyc timestamps on Windows / NTFS (apparently due to buggy fstat)
2012-12-24 16:33:18 +00:00
Senthil Kumaran
0a6b9eca68
merge from 3.2
...
Fix Issue15701 - HTTPError info method call raises AttributeError. Fix that to return headers correctly
2012-12-23 09:12:13 -08:00
Senthil Kumaran
41e66a26b0
Fix Issue15701 - HTTPError info method call raises AttributeError. Fix that to return headers correctly
2012-12-23 09:04:24 -08:00
Senthil Kumaran
f8a6b005fd
Fix Issue15701 - HTTPError info method call raises AttributeError. Fix that to return headers correctly
2012-12-23 09:00:47 -08:00
Andrew Svetlov
f347cf903c
merge heads
2012-12-23 12:51:40 +02:00
Andrew Svetlov
8e42e8a0c6
Issue #16045 : add more unit tests for built-in int()
...
Patch by Chris Jerdonek.
2012-12-23 12:49:33 +02:00
Andrew Svetlov
cddcafaf6b
Issue #16045 : add more unit tests for built-in int()
...
Patch by Chris Jerdonek.
2012-12-23 12:44:04 +02:00
Brett Cannon
73b969ec70
Issue #16752 : Add a missing import to modulefinder.
...
Also fix Misc/ACKS to put part of it back in alphabetical order and
remove some duplicate names.
Patch by Berker Peksag.
2012-12-22 19:34:21 -05:00
Petri Lehtinen
ab7dd183f3
#8853 : Allow port to be of type long for socket.getaddrinfo()
2012-12-20 21:09:56 +02:00
Benjamin Peterson
a2d6d7121e
call close on the underlying stream even if flush raises ( #16597 )
2012-12-20 12:24:10 -06:00
Benjamin Peterson
68623614f0
call close on the underlying stream even if flush raises ( closes #16597 )
...
Patch by Serhiy Storchaka.
2012-12-20 11:53:11 -06:00
Benjamin Peterson
5ff3f73d94
try to call __bytes__ before __index__ ( closes #16722 )
2012-12-19 15:27:41 -06:00
Andrew Svetlov
1f415cf2c2
replace threw with raised ( #16714 )
2012-12-19 22:54:47 +02:00
Andrew Svetlov
7bd61cbc03
replace threw with raised ( #16714 )
2012-12-19 22:49:25 +02:00
Andrew Svetlov
bacf1bf355
replace threw with raised ( #16714 )
2012-12-19 22:49:01 +02:00
Antoine Pitrou
08d02724df
Small cleanup in test_ftplib
2012-12-19 20:44:02 +01:00
Antoine Pitrou
d5a070f586
Silence sporadic failure in RecvmsgIntoSCTPStreamTest.testRecvmsgEOF (issue #13876 ) - probably not Python-related.
2012-12-18 23:44:36 +01:00
Antoine Pitrou
07edb82e4b
Call importlib.invalidate_caches() after creating module files in test_threaded_import.
2012-12-18 23:28:04 +01:00
Antoine Pitrou
e0b1c23145
Try to make test_threaded_import faster and safer (issue #15599 ).
2012-12-18 23:03:42 +01:00
Antoine Pitrou
202b60640b
Add sanity assertions in some import lock code (issue #15599 ).
2012-12-18 22:18:17 +01:00
Andrew Svetlov
4bb142b1b7
Issue #16714 : use 'raise' exceptions, don't 'throw'.
...
Patch by Serhiy Storchaka.
2012-12-18 21:27:37 +02:00
Andrew Svetlov
5b89840d9c
Issue #16714 : use 'raise' exceptions, don't 'throw'.
...
Patch by Serhiy Storchaka.
2012-12-18 21:26:36 +02:00
Andrew Svetlov
737fb89dd1
Issue #16714 : use 'raise' exceptions, don't 'throw'.
...
Patch by Serhiy Storchaka.
2012-12-18 21:14:22 +02:00
Stefan Krah
9a4ff437d1
Issue #15783 : Support None default values in the Context() constructor.
2012-12-16 21:10:35 +01:00
Antoine Pitrou
92f8b0016e
Silence sporadic failure in RecvmsgSCTPStreamTest.testRecvmsgEOF (issue #13876 ) - probably not Python-related.
2012-12-16 16:40:04 +01:00
Antoine Pitrou
697ce5560f
Fix ResourceWarnings in test_pty
2012-12-16 16:09:11 +01:00
Antoine Pitrou
33138df36a
Issue #16696 : fix comparison between bytes and string. Also, improve glob tests.
2012-12-16 16:03:42 +01:00
Antoine Pitrou
5461558d1a
Issue #16696 : fix comparison between bytes and string. Also, improve glob tests.
2012-12-16 16:03:01 +01:00
Antoine Pitrou
124ee8b1ab
Issue #16626 : Fix infinite recursion in glob.glob() on Windows when the pattern contains a wildcard in the drive or UNC path.
...
Patch by Serhiy Storchaka.
2012-12-16 13:55:47 +01:00
Antoine Pitrou
3c331bb729
Issue #16626 : Fix infinite recursion in glob.glob() on Windows when the pattern contains a wildcard in the drive or UNC path.
...
Patch by Serhiy Storchaka.
2012-12-16 13:50:19 +01:00
Antoine Pitrou
3d068b2ecf
Issue #16626 : Fix infinite recursion in glob.glob() on Windows when the pattern contains a wildcard in the drive or UNC path.
...
Patch by Serhiy Storchaka.
2012-12-16 13:49:37 +01:00
Hynek Schlawack
9ca5893338
#16664 : Add regression tests for glob's behaviour concerning "."-entries
...
Patch by Sebastian Kreft.
2012-12-16 12:44:07 +01:00
Hynek Schlawack
dec59ec5ff
#16664 : Add regression tests for glob's behaviour concerning "."-entries
...
Patch by Sebastian Kreft.
2012-12-16 12:39:11 +01:00
Hynek Schlawack
646c7b5086
#16664 : Add regression tests for glob's behaviour concerning "."-entries
...
Patch by Sebastian Kreft.
2012-12-16 12:30:57 +01:00
Stefan Krah
040e311826
Issue #15783 : Except for the number methods, the C version of decimal now
...
supports all None default values present in decimal.py. These values were
largely undocumented.
2012-12-15 22:33:33 +01:00
Antoine Pitrou
d20e7745ee
Issue #16298 : In HTTPResponse.read(), close the socket when there is no Content-Length and the incoming stream is finished.
...
Patch by Eran Rundstein.
2012-12-15 19:22:30 +01:00
Antoine Pitrou
084daa2f74
Issue #16298 : In HTTPResponse.read(), close the socket when there is no Content-Length and the incoming stream is finished.
...
Patch by Eran Rundstein.
2012-12-15 19:11:54 +01:00
Antoine Pitrou
4113d2bd36
Issue #16298 : In HTTPResponse.read(), close the socket when there is no Content-Length and the incoming stream is finished.
...
Patch by Eran Rundstein.
2012-12-15 19:11:54 +01:00
Ross Lagerwall
a0b315f5f7
Issue #16661 : Fix the os.getgrouplist() test by not assuming that it
...
gives the same output as "id -G".
2012-12-13 15:20:26 +00:00
Hynek Schlawack
c474c4e749
#15872 : Some more Windows related tuning to shutil.rmtree tests
...
Turns out, the snakebite bots behave also their peculiarities.
I'm really not proud of this stream of commits. :(
2012-12-10 16:33:41 +01:00
Hynek Schlawack
87f9b46f15
#15872 : Some more Windows related tuning to shutil.rmtree tests
...
Turns out, the snakebite bots behave also their peculiarities.
I'm really not proud of this stream of commits. :(
2012-12-10 16:29:57 +01:00
Hynek Schlawack
f29b4937f7
#15872 : Be flexible with appending *.* in shutil.rmtree test case
...
The Windows buildbots seem to be unable to agree whether they need them or not.
2012-12-10 12:02:26 +01:00
Hynek Schlawack
b9e9f3e70d
#15872 : Be flexible with appending *.* in shutil.rmtree test case
...
The Windows buildbots seem to be unable to agree whether they need them or not.
2012-12-10 12:01:28 +01:00
Hynek Schlawack
9d5e0cca85
#15872 : More shutil test fixes for Windows
2012-12-10 11:08:59 +01:00
Hynek Schlawack
9a4a750673
#15872 : More shutil test fixes for Windows
2012-12-10 11:08:09 +01:00
Hynek Schlawack
b57b094077
#15872 : Fix shutil.rmtree error tests for Windows
2012-12-10 10:08:41 +01:00
Hynek Schlawack
9e8ac56e35
#15872 : Fix shutil.rmtree error tests for Windows
2012-12-10 10:07:11 +01:00
Hynek Schlawack
b550110f64
#15872 : Fix 3.3 regression introduced by the new fd-based shutil.rmtree
...
It caused rmtree to not ignore certain errors when ignore_errors was set.
Patch by Alessandro Moura and Serhiy Storchaka.
2012-12-10 09:11:25 +01:00
Hynek Schlawack
d16eacba48
#15872 : Add tests for a 3.3 regression in the new fd-based shutil.rmtree
...
It cause shutil.rmtree not ignore all errors. Also add a test ensuring that
rmtree fails when being called on a symlink. Patch by Serhiy Storchaka.
2012-12-10 09:00:09 +01:00
Antoine Pitrou
f93ed3fa67
Issue #16602 : When a weakref's target was part of a long deallocation chain, the object could remain reachable through its weakref even though its refcount had dropped to zero.
...
Thanks to Eugene Toder for diagnosing and reporting the issue.
2012-12-08 21:17:03 +01:00
Antoine Pitrou
62a0d6ea40
Issue #16602 : When a weakref's target was part of a long deallocation chain, the object could remain reachable through its weakref even though its refcount had dropped to zero.
...
Thanks to Eugene Toder for diagnosing and reporting the issue.
2012-12-08 21:15:26 +01:00
Antoine Pitrou
d38c990bb7
Issue #16602 : When a weakref's target was part of a long deallocation chain, the object could remain reachable through its weakref even though its refcount had dropped to zero.
...
Thanks to Eugene Toder for diagnosing and reporting the issue.
2012-12-08 21:15:26 +01:00
Andrew Svetlov
f0eb7adc7f
Merge: skip pdb test for #13120 if threading is not available.
2012-12-05 15:06:54 +02:00
Andrew Svetlov
96bc04369a
Skip pdb test for #13120 if threading is not available.
2012-12-05 15:06:23 +02:00
Andrew Svetlov
1dfb5c1cf3
Merge issue #13120 : Allow to call pdb.set_trace() from thread.
...
Patch by Ilya Sandler.
2012-12-04 21:10:20 +02:00
Andrew Svetlov
539ee5da6f
Issue #13120 : Allow to call pdb.set_trace() from thread.
...
Patch by Ilya Sandler.
2012-12-04 21:08:28 +02:00
Victor Stinner
8c7c697e49
Issue #15747 : skip chflags UF_IMMUTABLE tests if EOPNOTSUPP is raised.
...
This is necessary for ZFS systems, which don't support UF_IMMUTABLE.
--
Kubilay Kocak (koobs) asked me on IRC to backport this fix to Python 2.7: done!
2012-12-04 10:07:16 +01:00
Antoine Pitrou
56a2ae27e3
Fix test splitting in previous commit.
2012-12-03 21:09:08 +01:00
Antoine Pitrou
86067c2e17
Fix test splitting in previous commit.
2012-12-03 21:08:43 +01:00
Antoine Pitrou
74635c9177
Fix test splitting in previous commit.
2012-12-03 21:08:43 +01:00
Antoine Pitrou
b33941ab02
Split the bigmem re test in two separate tests with different memory requirements.
2012-12-03 20:55:56 +01:00
Antoine Pitrou
1f1888ec1e
Split the bigmem re test in two separate tests with different memory requirements.
2012-12-03 20:53:12 +01:00
Antoine Pitrou
735f36edb8
Split the bigmem re test in two separate tests with different memory requirements.
2012-12-03 20:53:12 +01:00
Benjamin Peterson
a2816c2b11
more test to more general test file, so it can test more things
2012-12-02 13:04:37 -05:00
Benjamin Peterson
2f560fa300
loosen test now that bytes are allowed
2012-12-02 12:37:04 -05:00
Benjamin Peterson
47a00f3d1a
support encoding error handlers that return bytes ( closes #16585 )
2012-12-02 11:20:28 -05:00
Antoine Pitrou
9a2b26748b
Issue #10182 : The re module doesn't truncate indices to 32 bits anymore.
...
Patch by Serhiy Storchaka.
2012-12-02 12:54:28 +01:00
Antoine Pitrou
43fb54cd4f
Issue #10182 : The re module doesn't truncate indices to 32 bits anymore.
...
Patch by Serhiy Storchaka.
2012-12-02 12:52:36 +01:00
Antoine Pitrou
b83575b0a5
Issue #10182 : The re module doesn't truncate indices to 32 bits anymore.
...
Patch by Serhiy Storchaka.
2012-12-02 12:52:36 +01:00
Benjamin Peterson
71966058a8
fix spelling
2012-11-30 16:13:14 -05:00
Benjamin Peterson
8a1a17b309
Remove redundant check for symlink. ( closes #6036 )
...
Patch by Bruno Dupuis.
2012-11-30 16:12:15 -05:00
Ezio Melotti
159f12e335
#16549 : merge with 3.2.
2012-11-29 05:10:31 +02:00
Ezio Melotti
4927633ab6
#16549 : fix test failures on Windows.
2012-11-29 05:10:07 +02:00
Ezio Melotti
4cee810f5d
#16476 : merge with 3.2.
2012-11-29 02:26:15 +02:00
Ezio Melotti
b32512ed9a
#16476 : Fix json.tool to avoid including trailing whitespace.
2012-11-29 02:25:03 +02:00
Ezio Melotti
1e86d01e1e
#16549 : merge with 3.2.
2012-11-29 02:16:58 +02:00
Ezio Melotti
057bcb4c6c
#16549 : Make json.tool work again on Python 3 and add tests. Initial patch by Berker Peksag and Serhiy Storchaka.
2012-11-29 02:15:18 +02:00
Ezio Melotti
c483034048
#16559 : merge with 3.2.
2012-11-26 19:27:02 +02:00
Ezio Melotti
8c52370403
#16559 : Add more tests for the json module. Patch by Serhiy Storchaka.
2012-11-26 19:24:20 +02:00
Mark Dickinson
b1cc6aa2df
Issue #9011 : AST creation no longer modifies CST for negated numeric literals.
2012-11-25 17:11:33 +00:00
Vinay Sajip
d27e05d734
Closes #16521 : Improved error handling for basicConfig(), added tests for same.
2012-11-25 15:11:46 +00:00
Mark Dickinson
ded35aeb9d
Issue #16546 : make ast.YieldFrom argument mandatory.
2012-11-25 14:36:26 +00:00
Mark Dickinson
1658797a9d
Issue #16339 : Document and test exec(stmt, globals, locals) form in Python 2.7.
2012-11-25 13:25:57 +00:00
Antoine Pitrou
508d7d356e
test_winsound should require the "audio" resource, as it does on 3.x.
...
(this should fix some buildbot test failures)
2012-11-24 18:25:25 +01:00
Ezio Melotti
9ab09d129e
Merge debug print removal with 3.2.
2012-11-23 22:16:45 +02:00
Ezio Melotti
82e60de727
Remove debug print.
2012-11-23 22:16:07 +02:00
Ezio Melotti
8a6d1fed41
#16306 : merge with 3.2.
2012-11-23 18:52:39 +02:00
Ezio Melotti
a0dd22e5e8
#16306 : report only the first unknown option and add more tests. Patch by Serhiy Storchaka.
2012-11-23 18:48:32 +02:00
Ezio Melotti
ec6486d52d
#16306 : report only the first unknown option and add more tests. Patch by Serhiy Storchaka.
2012-11-23 18:46:11 +02:00
Chris Jerdonek
5fae0e5854
Improve str() and object.__str__() documentation (issue #13538 ).
2012-11-20 17:45:51 -08:00
Chris Jerdonek
17fc44c9b3
Improve str() and object.__str__() documentation (issue #13538 ).
2012-11-20 17:31:02 -08:00
Barry Warsaw
ed843b5e5c
Do a better job of preserving the state of sys.modules.
2012-11-20 17:10:10 -05:00
Antoine Pitrou
a34412a992
Merge test from issue #1160 .
2012-11-20 22:35:53 +01:00
Antoine Pitrou
b83ea144cc
Issue #1160 : Fix compiling large regular expressions on UCS2 builds.
...
Patch by Serhiy Storchaka.
2012-11-20 22:30:42 +01:00
Antoine Pitrou
39bdad813a
Issue #1160 : Fix compiling large regular expressions on UCS2 builds.
...
Patch by Serhiy Storchaka.
2012-11-20 22:30:42 +01:00
Barry Warsaw
82c1c781c7
- Issue #16514 : Fix regression causing a traceback when sys.path[0] is None
...
(actually, any non-string or non-bytes type).
2012-11-20 15:22:51 -05:00
Ezio Melotti
4b26d5507b
#7782 : merge with 3.2.
2012-11-18 23:15:47 +02:00
Ezio Melotti
4a1fdcf07d
#7782 : add a test for test_iter.
2012-11-18 23:14:42 +02:00
Ezio Melotti
6451497df1
#7782 : add a test for test_iter.
2012-11-18 23:14:42 +02:00
Ezio Melotti
f7c709d62d
#16306 : merge with 3.2.
2012-11-18 14:02:08 +02:00
Ezio Melotti
7c66319edc
#16306 : Fix multiple error messages when unknown command line parameters where passed to the interpreter. Patch by Hieu Nguyen.
2012-11-18 13:55:52 +02:00
Ezio Melotti
db5947f0f3
#16306 : Fix multiple error messages when unknown command line parameters where passed to the interpreter. Patch by Hieu Nguyen.
2012-11-18 13:46:38 +02:00
Ezio Melotti
6a5fc4c443
#14313 : zipfile now raises NotImplementedError when the compression type is unknown.
2012-11-18 13:20:36 +02:00
Ezio Melotti
9e94972eed
#14313 : zipfile now raises NotImplementedError when the compression type is unknown.
2012-11-18 13:18:06 +02:00
Antoine Pitrou
e3ae321222
Issue #15379 : Fix passing of non-BMP characters as integers for the charmap decoder (already working as unicode strings).
...
Patch by Serhiy Storchaka.
2012-11-17 21:14:58 +01:00
Philip Jenvey
21c95ebf7f
merge 3.2
2012-11-14 14:49:49 -08:00
Philip Jenvey
b37ac8eaf6
don't gc_collect on CPython to guarantee a lack of ref cycles (thanks Antoine)
2012-11-14 14:37:24 -08:00