Serhiy Storchaka
72121c6c30
- Issue #17041 : Fix testing when Python is configured with the
...
--without-doc-strings option.
2013-01-27 19:45:49 +02:00
Stefan Krah
4216aa1e52
Adapt test for build --without-doc-strings.
2013-01-26 13:31:44 +01:00
Serhiy Storchaka
6fef14d7f3
Optimize the test for issue #13454 .
...
Now it requires almost 4x less memory and is almost 2x faster.
2013-01-26 11:51:42 +02:00
Serhiy Storchaka
01b3a08f5e
Issue #16975 : Fix error handling bug in the escape-decode decoder.
2013-01-25 23:30:50 +02:00
Serhiy Storchaka
b09ec9b618
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:31:05 +02:00
Serhiy Storchaka
7ee79a2823
Don't run the test for issue #16335 when -M is not specified.
...
Increase memory limit in this test.
2013-01-25 10:03:12 +02:00
Serhiy Storchaka
353e54edc4
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:13:26 +02:00
Serhiy Storchaka
e3adb43b4b
Add bigmemtest decorator to test of issue #16335 .
2013-01-21 20:23:01 +02:00
Serhiy Storchaka
b1ecf80e04
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:03:58 +02:00
Christian Heimes
4d70e583ab
fix for f4d30d1a529e
...
Python 2.7 has only assertRaisesRegexp, not assertRaisesRegex
2013-01-21 11:25:27 +01:00
Serhiy Storchaka
1d3acd4b59
Issue #16335 : Fix integer overflow in unicode-escape decoder.
2013-01-21 11:48:24 +02:00
Serhiy Storchaka
18a13933f9
Ensure that width and precision in string formatting test have type int, not long.
...
Fix a regression from changeset d544873d62e9 (issue #15989 ).
2013-01-19 21:06:35 +02:00
Serhiy Storchaka
74f49ab28b
Issue #15989 : Fix several occurrences of integer overflow
...
when result of PyInt_AsLong() or PyLong_AsLong() narrowed
to int without checks.
This is a backport of changesets 13e2e44db99d and 525407d89277.
2013-01-19 12:55:39 +02:00
Benjamin Peterson
2f78f0e1f9
support -> test_support
2013-01-18 00:44:49 -05:00
Benjamin Peterson
08e153ae37
check windows fd validity ( closes #16992 )
2013-01-18 00:10:24 -05:00
Frank Wierzbicki
65a9f36981
Closed #16886 : test_dictcomps no longer depends on dict order
2013-01-16 13:52:22 -08:00
Serhiy Storchaka
9599745e2c
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:42:59 +02:00
Charles-François Natali
8c9047149b
test_asyncore: wait explicitly for a thread termination (this dangling thread
...
could be the cause of a random failure).
2013-01-13 13:55:13 +01:00
Charles-François Natali
ef2bd67e23
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
Serhiy Storchaka
dfae912d80
Issue #15539 : Fix backup file creation in pindent.py on Windows
2013-01-11 22:16:15 +02:00
Serhiy Storchaka
8cd7f82024
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 11:59:59 +02:00
Ezio Melotti
5c4e32b131
#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
Serhiy Storchaka
c4b82c037e
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:12:00 +02:00
Nadeem Vawda
895cc22b8b
Issue #16828 : Fix error incorrectly raised by bz2.compress('').
...
Patch by Martin Packman.
2013-01-02 22:59:51 +01:00
Benjamin Peterson
a708adfcf6
call PyErr_Clear() when ignoring error from PyNumber_Int ( closes #15516 )
...
Patch from Tom Tromey.
2013-01-02 12:21:32 -06:00
Giampaolo Rodola'
cef2006eaf
Fix issue 10527: make multiprocessing use poll() instead of select() if available.
2012-12-31 17:23:09 +01:00
Serhiy Storchaka
421489f8a6
Issue #16645 : Fix hardlink extracting test for tarfile.
2012-12-30 20:15:10 +02:00
Serhiy Storchaka
4ed797efbc
Issue #16485 : Fix file descriptor not being closed if file header patching fails on closing of aifc file.
2012-12-29 22:25:59 +02: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
cf095f8e0f
Issue #16761 : Raise TypeError when int() or long() called with base argument only.
2012-12-28 09:31:59 +02: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
8876145fab
Issue #16793 . Replace deprecated unittest asserts with modern counterparts.
2012-12-28 00:32:19 +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
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
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
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
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
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
cddcafaf6b
Issue #16045 : add more unit tests for built-in int()
...
Patch by Chris Jerdonek.
2012-12-23 12:44:04 +02: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
Andrew Svetlov
bacf1bf355
replace threw with raised ( #16714 )
2012-12-19 22:49:01 +02:00
Andrew Svetlov
4bb142b1b7
Issue #16714 : use 'raise' exceptions, don't 'throw'.
...
Patch by Serhiy Storchaka.
2012-12-18 21:27:37 +02: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
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
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
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
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
74635c9177
Fix test splitting in previous commit.
2012-12-03 21:08:43 +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
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
Mark Dickinson
b1cc6aa2df
Issue #9011 : AST creation no longer modifies CST for negated numeric literals.
2012-11-25 17:11:33 +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
ec6486d52d
#16306 : report only the first unknown option and add more tests. Patch by Serhiy Storchaka.
2012-11-23 18:46:11 +02: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
Ezio Melotti
6451497df1
#7782 : add a test for test_iter.
2012-11-18 23:14:42 +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
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
Antoine Pitrou
b704eab599
Issue #16453 : Fix equality testing of dead weakref objects.
...
Also add tests for hashing.
2012-11-11 19:36:51 +01:00
Gregory P. Smith
027d6fcebd
remove an obsolete comment
2012-11-11 10:13:06 -08:00
Gregory P. Smith
f047ba83e8
Refactor test_preexec_errpipe to not create an uncollectable reference cycle.
2012-11-11 09:49:02 -08:00
Gregory P. Smith
c3197254ac
whitespace fix
2012-11-11 02:01:56 -08:00
Gregory P. Smith
211248b214
Fix issue #16140 bug that the fix to issue #16327 added - don't double
...
close subprocess.PIPE file descriptors when the child encounters an
error prior to exec.
2012-11-11 02:00:49 -08:00
Gregory P. Smith
9d3b6e9822
Fixes issue #16327 : The subprocess module no longer leaks file descriptors
...
used for stdin/stdout/stderr pipes to the child when fork() fails.
2012-11-10 22:49:03 -08:00
Nadeem Vawda
3c30970d29
Issue #16411 : Fix a bug where zlib.decompressobj().flush() might try to access previously-freed memory.
...
Patch by Serhiy Storchaka.
2012-11-11 03:14:56 +01:00
Nadeem Vawda
252f4dc6c9
Issue #16350 , part 2: Set unused_data (and unconsumed_tail) correctly in decompressobj().flush().
...
Additionally, fix a bug where a MemoryError in allocating a bytes object could
leave the decompressor object in an invalid state (with its unconsumed_tail
member being NULL).
Patch by Serhiy Storchaka.
2012-11-11 02:14:15 +01:00
Hynek Schlawack
b271b3e188
Issue #15001 : fix segfault on "del sys.modules['__main__']"
...
Patch by Victor Stinner.
2012-11-07 09:41:28 +01:00
Nadeem Vawda
6cad3712b3
Issue #16350 : Fix zlib decompressor handling of unused_data with multiple calls to decompress() after EOF.
...
Patch by Serhiy Storchaka.
2012-11-05 00:55:06 +01:00
Ezio Melotti
c18cc0edff
#5057 : the peepholer no longer optimizes subscription on unicode literals (e.g. u"foo"[0]) in order to produce compatible pyc files between narrow and wide builds.
2012-11-05 00:03:21 +02:00
Ezio Melotti
67dc4a87fc
#8401 : assigning an int to a bytearray slice (e.g. b[3:4] = 5) now raises an error.
2012-11-03 21:10:45 +02:00
Ezio Melotti
ef3173877c
#12759 : sre_parse now raises a proper error when the name of the group is missing. Initial patch by Serhiy Storchaka.
2012-11-03 20:31:12 +02:00
Ezio Melotti
7d24b1698a
#16152 : fix tokenize to ignore whitespace at the end of the code when no newline is found. Patch by Ned Batchelder.
2012-11-03 17:30:51 +02:00
Antoine Pitrou
0552fc2b8a
Issue #16230 : Fix a crash in select.select() when one the lists changes size while iterated on.
...
Patch by Serhiy Storchaka.
2012-11-01 20:13:54 +01:00
Mark Dickinson
4ca83ec72d
Issue #16377 : fix missed test due to incorrect indentation in test_bisect. Thanks Yury Selivanov.
2012-10-31 20:38:52 +00:00
Benjamin Peterson
0ec820fc5f
only fast-path fromkeys() when the constructor returns a empty dict ( closes #16345 )
2012-10-31 14:05:55 -04:00
Nadeem Vawda
8e0dfea81c
Add test for BZ2Decompressor.decompress("") after end of stream.
2012-10-28 15:20:35 +01:00
Mark Dickinson
75d3600466
Issue #14700 : Fix buggy overflow checks for large precision and width in new-style and old-style formatting.
2012-10-28 10:00:46 +00:00
Georg Brandl
08114d40e9
changeset: 80007:49e4541f2aef
...
parent: 80003:be83cbf4a789
parent: 80006:32df036e6b75
user: Georg Brandl <georg@python.org>
date: Sun Oct 28 10:50:11 2012 +0100
summary: merge with 3.3
2012-10-28 10:51:35 +01:00
R David Murray
3e66f0d14d
#15043 : Improve test_gdb support of gdb >= 7.4.
...
Instead of requiring the tester to manually add the path to the python-gdb.py
file in the checkout to their .gdbinit file, add it automatically when
invoking gdb in the test.
2012-10-27 13:47:49 -04:00
Senthil Kumaran
f8d370e30d
Add some tests in 2.7 for Issue #16250
2012-10-27 03:48:40 -07:00
Trent Nelson
e9992292be
Issue #16274 : Fix test_asyncore on Solaris.
2012-10-26 22:21:46 -04:00
Petri Lehtinen
9ad6a563a7
#15040 : Close files in mailbox tests for PyPy compatibility
...
Original patch by Matti Picus.
2012-10-23 14:42:13 +03:00
Nadeem Vawda
45dba1da32
Issue #14398 : Fix size truncation and overflow bugs in bz2 module.
2012-10-21 23:09:08 +02:00
Nadeem Vawda
dd72b3f6b7
Issue #5148 : Ignore 'U' in mode given to gzip.open() and gzip.GzipFile().
2012-10-21 18:15:05 +02:00
Antoine Pitrou
c30848344c
Fix whacky spacing in test_wsgiref
2012-10-21 14:10:29 +02:00
Antoine Pitrou
e97a24d06a
Issue #16220 : wsgiref now always calls close() on an iterable response.
...
Patch by Brent Tubbs.
2012-10-21 14:09:05 +02:00
Nick Coghlan
33b0fc2304
No reason to use a generator here
2012-10-19 23:59:35 +10:00
Nick Coghlan
097708aef6
Issue #6074 : Actually delete the source file in the test as intended
2012-10-19 23:17:48 +10:00
Nick Coghlan
b48c028ca7
Issue #6074 : Restore the long-broken support for running with read-only source files on Windows
2012-10-19 21:58:18 +10:00
Trent Nelson
02f69f6965
Issue #16274 : revert r79813:90a46f8943d0 changes to asyncore/test_asyncore.
...
The backport from 3.2 included a few things not appropriate for 2.7.
2012-10-18 07:44:43 -04:00
Trent Nelson
0622f6c14c
Issue #16274 : backport of 3.2's asyncore/test_asyncore to 2.7.
...
This fixes failing tests on Solaris 10.
2012-10-18 06:08:01 -04:00
Trent Nelson
6a7f8670dd
Issue #16257 : make test_create_connection() handle ENETUNREACH.
2012-10-18 01:35:32 -04:00
Antoine Pitrou
eadca1defa
Also add tests for TextIOWrapper.writelines() (issue #15744 ).
2012-10-16 23:02:27 +02:00
Antoine Pitrou
78e761eafe
Add tests for the writelines() method of file objects.
...
Original patch by Felipe Cruz.
2012-10-16 22:57:11 +02:00
Benjamin Peterson
bf67ba8f84
only run doctests when __doc__ is around
2012-10-16 09:51:46 -04:00
Benjamin Peterson
fd6d3b149f
fix typo
2012-10-15 22:29:02 -04:00
Benjamin Peterson
ca01a76878
don't expect warnings from doctests if they can't run
2012-10-15 20:38:21 -04:00
Gregory P. Smith
99716166b1
Fixes Issue #12268 for the io module - File readline, readlines and
...
read or readall methods no longer lose data when an underlying read
system call is interrupted within an io module object. IOError is no
longer raised due to a read system call returning EINTR from within
these methods.
This is a backport of changeset 781b95159954 from 3.2.
The earlier 2.7 changeset 67dc99a989cd already fixed this for the
builtin python 2.x file object.
2012-10-12 13:02:06 -07:00
Mark Dickinson
313dc9b812
Clean up a test turd.
2012-10-07 15:41:38 +01:00
Gregory P. Smith
0798cbc1df
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 12:02:48 -07:00
Mark Dickinson
218a8ab5eb
Issues #16029 , #16030 : Fix pickling and repr of large xranges.
2012-09-28 20:36:36 +01:00
Petri Lehtinen
fb2e8a7c01
#15222 : Fix a test failure on Windows
2012-09-26 07:42:18 +03:00
Petri Lehtinen
a4fd0dc574
#15222 : Insert blank line after each message in mbox mailboxes
2012-09-25 22:01:23 +03:00
Petri Lehtinen
ec2807c435
#15222 : test_mailbox: End message template in a newline
2012-09-25 21:49:46 +03:00
Senthil Kumaran
d41dc7ce46
2.7 : Issue #16013 : Fix CSV Reader parsing issue with ending quote characters. Patch by Serhiy Storchaka.
2012-09-25 02:48:21 -07:00
Christian Heimes
8112ea2360
Issue #16012 : Fix a regression in pyexpat. The parser's UseForeignDTD()
...
method doesn't require an argument again.
2012-09-24 13:17:08 +02:00
Ezio Melotti
cadff70ba5
#15421 : fix an OverflowError in Calendar.itermonthdates() after datetime.MAXYEAR. Patch by Cédric Krier.
2012-09-21 17:26:35 +03:00
Benjamin Peterson
fb2f409b90
remove gdb noise about linux-vdso
2012-09-20 23:48:23 -04:00
Ezio Melotti
6d6fb3aa9f
#15970 : xml.etree.ElementTree now serializes correctly the empty HTML elements "meta" and "param".
2012-09-19 08:11:03 +03:00
Barry Warsaw
03937a8755
A follow up for issue #15906 : change the test for calling the type conversion
...
on the action's default, reverting it back to previous behavior. Conversion
is only done on string defaults.
Add a test for this and another test that ensures such type conversions are
only called once.
2012-09-12 14:34:50 -04:00
Barry Warsaw
03fcfbef0a
- Issue #15906 : Fix a regression in argparse caused by the preceding change,
...
when action='append', type='str' and default=[].
2012-09-11 21:06:29 -04:00
Jesus Cea
a8a5b397c1
Closes #15793 : Stack corruption in ssl.RAND_egd(). Python 2.7 hasn't any issue about this, but add a test just to be sure
2012-09-11 01:55:04 +02:00
Jesus Cea
20f0ea1f61
#15676 : mmap: add empty file check prior to offset check <- Previous patch was incomplete
2012-09-10 22:45:47 +02:00
Jesus Cea
3fb774ec5f
Closes #15910 : MD5 and SHA1 crash when "updated" with strings bigger than 2**32 bytes
2012-09-10 21:39:07 +02:00
Jesus Cea
03a9d2a20b
Closes #15908 : SHA1 crashes in 64 bits when the string to hash is bigger than 2**32 bytes
2012-09-10 21:04:42 +02:00
R David Murray
4709ac14ff
#14649 : add sample files omitted from previous checkin.
2012-09-10 11:20:47 -04:00
R David Murray
8d580539f0
#14649 : clarify DocTestSuite error when there are no docstrings.
...
Also adds tests to verify the documented behavior (which is probably a bug, as
indicated in the added comments).
Patch by Chris Jerdonek.
2012-09-10 10:17:13 -04:00
doko@ubuntu.com
7a8634d8d8
backport from the trunk, to fix test_tools with srcdir != builddir
...
changeset: 77827:c23b442b5d5e
user: Antoine Pitrou <solipsis@pitrou.net>
date: Thu Jun 28 01:20:26 2012 +0200
summary: Avoid using scrdir, it's broken.
changeset: 77826:f0e58e778215
user: Neil Schemenauer <nas@arctrix.com>
date: Wed Jun 27 15:58:37 2012 -0600
summary: Fix bug in test_tools that prevented building is separate directory.
2012-09-10 14:34:42 +02:00
Jesus Cea
8b54d6d733
Closes #15676 : mmap: add empty file check prior to offset check
2012-09-10 00:22:39 +02:00
R David Murray
1b6e7c47f2
#15510 : clarify textwrap's handling of whitespace, and add confirming tests.
...
Patch by Chris Jerdonek.
2012-09-08 13:42:01 -04:00
R David Murray
a99c7dedcb
#15847 : allow args to be a tuple in parse_args
...
This fixes a regression introduced by the fix for issue #13922 . Although args
is not documented as being allowed to be a tuple, previously this worked and
so naturally there are programs in the field that depend on it.
Patch by Zbyszek Jędrzejewski-Szmek.
2012-09-08 12:15:25 -04:00
Antoine Pitrou
58098a77e6
Issue #13992 : The trashcan mechanism is now thread-safe. This eliminates
...
sporadic crashes in multi-thread programs when several long deallocator
chains ran concurrently and involved subclasses of built-in container
types.
Because of this change, a couple extension modules compiled for 2.7.4
(those which use the trashcan mechanism, despite it being undocumented)
will not be loadable by 2.7.3 and earlier. However, extension modules
compiled for 2.7.3 and earlier will be loadable by 2.7.4.
2012-09-06 00:59:49 +02:00
Antoine Pitrou
c5eec0e387
Issue #15841 : The readable(), writable() and seekable() methods of io.BytesIO
...
and io.StringIO objects now raise ValueError when the object has been closed.
Patch by Alessandro Moura.
2012-09-05 20:11:49 +02:00
Petri Lehtinen
80f4553d56
#15802 : Fix test logic in TestMaildir.test_create_tmp
2012-09-01 14:25:48 +03:00
R David Murray
201018718f
#12776,#11839: call argparse type function only once.
...
Before, the type function was called twice in the case where the default
was specified and the argument was given as well. This was especially
problematic for the FileType type, as a default file would always be
opened, even if a file argument was specified on the command line.
Patch by Arnaud Fontaine, with additional test by Mike Meyer.
2012-08-31 23:15:28 -04:00
Trent Nelson
da4277a739
Issue #15765 : Fix quirky NetBSD getcwd() behaviour.
...
This is done by extending a previous fix for issue #9185 that was made for
Solaris and OpenBSD to NetBSD as well.
2012-08-29 09:20:41 -04:00
Benjamin Peterson
23d49d3e7e
use the stricter PyMapping_Check ( closes #15801 )
2012-08-28 17:55:35 -04:00
Mark Dickinson
c63be46b23
Remove overeager test (don't depend on the sign of a nan; cf. issue #14521 )
2012-08-24 20:26:23 +01:00
Mark Dickinson
088cec3ab7
Issue #15544 : Fix Decimal.__float__ to work with payload-carrying NaNs.
2012-08-24 20:06:30 +01:00
Petri Lehtinen
2d44ceeada
#11062 : Fix adding a message from file to Babyl mailbox
2012-08-15 14:25:41 +03:00
R David Murray
7cd8b42f32
#9161 : Fix test to use standard optparse test pattern (what was I thinking?)
2012-08-14 09:14:37 -04:00
Richard Oudkerk
faee75c33a
Issue #15646 : Prevent equivalent of a fork bomb when using multiprocessing
...
on Windows without the "if __name__ == '__main__'" idiom.
2012-08-14 11:41:19 +01:00
R David Murray
fe9efc5732
#9161 : add test for the bug fixed by r82581.
...
Patch by Michael Johnson.
2012-08-13 22:04:30 -04:00
Brian Curtin
bc77d3690b
Fix #15496 . Add directory removal helpers to make Windows tests more reliable. Patch by Jeremy Kloth
2012-08-13 17:26:48 -05:00
Georg Brandl
d26b658f14
Graft a89d654adaa2 from 3.2 branch. Fixes #15620 .
2012-08-11 11:08:04 +02:00
Meador Inge
2d639d5665
Issue #15424 : Add a __sizeof__ implementation for array objects.
...
Patch by Ludwig Hähne.
2012-08-10 22:05:45 -05:00
Jesus Cea
d52544dfd6
#15512 : Remove remnants of debugging code
2012-08-03 15:48:56 +02:00
Jesus Cea
d4e58dc966
Closes #15469 : Correct __sizeof__ support for deque
2012-08-03 14:48:23 +02:00
Jesus Cea
3e3192d8f7
Closes #15512 : Correct __sizeof__ support for parser
2012-08-03 14:25:53 +02:00
Antoine Pitrou
baee34c344
Issue #15489 : Add a __sizeof__ implementation for BytesIO objects.
...
Patch by Serhiy Storchaka.
2012-07-30 00:01:06 +02:00
Antoine Pitrou
bff5df0d1c
Issue #15487 : Add a __sizeof__ implementation for buffered I/O objects.
...
Patch by Serhiy Storchaka.
2012-07-29 19:02:46 +02:00