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
Martin v. Löwis
c02e1e65c4
Issue #15467 : Move helpers for __sizeof__ tests into test_support.
...
Patch by Serhiy Storchaka.
2012-07-29 16:30:50 +02:00
Meador Inge
6812346808
Issue #15402 : Simplify Struct.__sizeof__ and make tests more precise.
2012-07-28 21:58:44 -05:00
Richard Oudkerk
e4b9938d77
Issue #6056 : Make multiprocessing use setblocking(True) on the sockets it uses.
...
Original patch by J Derek Wilson.
2012-07-27 14:05:46 +01:00
Jesus Cea
fde7890f48
Better test for Issue #15402 : Add a __sizeof__ method to struct.Struct
2012-07-23 18:14:45 +02:00
Meador Inge
87c5b94c39
Issue #15402 : Add a __sizeof__ method to struct.Struct.
...
Initial patch by Serhiy Storchaka.
2012-07-23 09:27:00 -05:00
Gregory P. Smith
ea2ce47958
merge heads
2012-07-21 21:23:00 -07:00
Gregory P. Smith
b9e9e0d5a8
Consistently raise a TypeError when a non str is passed to hashlib.new
...
regardless of which of the two implementations of new is used.
2012-07-21 21:22:16 -07:00
R David Murray
68f555c03a
#13922 : argparse no longer incorrectly strips '--' after the first one.
...
Patch by Jeff Knupp.
2012-07-21 22:54:34 -04:00
R David Murray
056c31f9cc
#12353 : argparse now correctly handles null argument values.
...
Patch by Torsten Landschoff.
2012-07-21 22:35:00 -04:00
Antoine Pitrou
715a63b783
Issue #14579 : Fix error handling bug in the utf-16 decoder.
...
Patch by Serhiy Storchaka.
2012-07-21 00:52:06 +02:00
Gregory P. Smith
e4220a5ec6
Fix the with_poll tests for platforms without poll. missing import.
2012-07-16 13:36:01 -07:00
Raymond Hettinger
66dd94199c
Issue 15337: help() shown as undocumented
2012-07-16 00:11:05 -07:00
Gregory P. Smith
e0c22206e4
Fixes Issue #14635 : telnetlib will use poll() rather than select() when possible
...
to avoid failing due to the select() file descriptor limit.
Contributed by Akintayo Holder and under the Google contributor agreement.
2012-07-15 22:16:06 -07:00
Antoine Pitrou
f526297d13
Try other approach to fix issue #15334 .
2012-07-13 22:46:41 +02:00
Antoine Pitrou
d8412c84c7
Issue #15334 : skip test_dynamic_key when run in non-interactive mode.
...
Patch by Jeremy Kloth.
2012-07-13 21:08:41 +02:00
Antoine Pitrou
1a689189d2
Issue #15338 : skip test_UNC_path when the current user doesn't have enough permissions to access the path.
2012-07-13 20:54:42 +02:00
Senthil Kumaran
5d60e56a17
revert the changes done in d931a3b64fd6 - buildbot failure.
...
The fix for issue14826 might need to address toBytes and test_url_encoding in
test_cookielib.py before it is brought back in.
2012-07-08 02:20:27 -07:00
Senthil Kumaran
01fe5fa8ea
Fix issue14826 - make urllib.request.Request quoted url consistent with URLOpener open method.
...
Patch contributed by Stephen Thorne.
2012-07-07 17:37:53 -07:00
Antoine Pitrou
c2ec992698
Issue #15247 : FileIO now raises an error when given a file descriptor pointing to a directory.
2012-07-06 18:48:24 +02:00
Senthil Kumaran
3b30b19e0a
Fix closes issue # 15033 - Return the proper exitcode for failure when modules are invoked using -m switch. Patch contributed by Jeff Knupp
2012-07-04 19:50:29 -07:00
Mark Dickinson
e0afb72402
Closes #14591 : Random.jumpahead could produce an invalid MT state on 64-bit machines.
2012-06-30 17:19:35 +01:00
Petri Lehtinen
d07de40490
#5346 : Preserve permissions of mbox, MMDF and Babyl mailbox files on flush()
2012-06-29 15:09:16 +03:00
Amaury Forgeot d'Arc
d958cc960f
Issue #15219 : Fix a reference leak when hashlib.new() is called with
...
invalid parameters.
2012-06-29 01:42:46 +02:00
Petri Lehtinen
45f0d9835c
#9559 : Append data to single-file mailbox files if messages are only added
...
If messages were only added, a new file is no longer created and
renamed over the old file when flush() is called on an mbox, MMDF or
Babyl mailbox.
2012-06-28 13:49:37 +03:00
Antoine Pitrou
cf807c04a3
Flush stdout and stderr when running tests in parallel
...
(helps getting results in real-time when stdio is transmitted over a pipe or socket)
2012-06-27 17:41:07 +02:00
Gregory P. Smith
b2ac4d693a
Fixes issue #12268 for file readline, readlines and read() and readinto methods.
...
They no longer lose data when an underlying read system call is interrupted.
IOError is no longer raised due to a read system call returning EINTR from
within these methods.
2012-06-25 20:57:36 -07:00
Antoine Pitrou
ed04f42b99
Try to fix failure of a Windows buildbot to capture name resolution errors.
2012-06-26 00:48:59 +02:00
Hynek Schlawack
9bd4bf2a3d
#10053 : Don't close FDs when FileIO.__init__ fails
...
Loosely based on the work by Hirokazu Yamamoto.
2012-06-21 19:45:19 +02:00
Nick Coghlan
a093312871
Issue #15043 : skip test_gdb if the custom hooks can't be loaded (backport from 3.x)
2012-06-17 19:03:39 +10:00
Meador Inge
43f42fc3cb
Issue #15054 : Fix incorrect tokenization of 'b' and 'br' string literals.
...
Patch by Serhiy Storchaka.
2012-06-16 21:05:50 -05:00
Petri Lehtinen
7cf6699699
#15036 : Make a repeated changes and flushes work with single-file mailboxes
2012-06-15 20:50:51 +03:00
Antoine Pitrou
884fb1c831
Skip test_bigmem.test_unicode_repr_oflw, since it crashes (issue #14904 ).
2012-06-15 18:33:48 +02:00
Richard Oudkerk
2182e0578c
Issue #13854 : Properly handle non-integer, non-string arg to SystemExit
...
Previously multiprocessing only expected int or str. It also wrongly
used an exit code of 1 when the argument was a string instead of zero.
2012-06-06 19:01:14 +01:00
Richard Oudkerk
d44a4a27a6
Issue #12157 : pool.map() does not handle empty iterable correctly
...
Initial patch by mouad
2012-06-06 17:52:18 +01:00
Vinay Sajip
c3ea4085f9
Changed comment on test skip.
2012-05-31 12:35:13 +01:00
Hynek Schlawack
877effc298
#4841 : Fix FileIO constructor to honor closefd when called repeatedly
...
Patch by Victor Stinner.
2012-05-25 09:24:18 +02:00
Antoine Pitrou
8e6287f50d
Fix other test requirements.
2012-05-24 22:30:19 +02:00
Antoine Pitrou
0673088ded
Fix memory constraint for test_decodeascii
2012-05-24 22:08:51 +02:00
Senthil Kumaran
37484dc324
Issue #14036 : return None when port in urlparse cross 65535
2012-05-24 21:54:34 +08:00
Vinay Sajip
269d21336a
Temporarily disabled test_race on Windows.
2012-05-20 09:53:13 +01:00
Martin v. Löwis
ed11a5d018
Issue #8767 : Restore building with --disable-unicode.
...
Original patch by Stefano Taschini.
2012-05-20 10:42:17 +02:00
Senthil Kumaran
f439a36630
Issue #14426 : Correct the Date format in Expires attribute of Set-Cookie. Patch by Federico Reghenzani and Müte Invert
2012-05-20 12:02:44 +08:00
Vinay Sajip
7b57750db5
Ignore exceptions on test handler closing.
2012-05-19 16:50:07 +01:00
Ezio Melotti
6d9c1b1617
#14072 : Fix parsing of tel URIs in urlparse by making the check for ports stricter.
2012-05-19 17:12:17 +03:00
Senthil Kumaran
618802d55e
Fix Issue14721: Send Content-length: 0 for empty body () in the http.request
2012-05-19 16:52:21 +08:00
Senthil Kumaran
ea24dda01f
Issue9374 - Generic parsing of query and fragment portion of urls for any scheme
2012-05-19 08:10:40 +08:00
Petri Lehtinen
280e9f7ce5
#14798 : pyclbr now raises ImportError instead of KeyError for missing packages
2012-05-18 21:54:25 +03:00
Antoine Pitrou
38fbd799d1
Issue #14829 : Fix bisect issues under 64-bit Windows.
2012-05-16 15:01:40 +02:00
Antoine Pitrou
4cf3f69250
Skip test under 64-bit Windows
2012-05-16 14:50:25 +02:00
Senthil Kumaran
b0d85fd1b5
Issue12541 - Add UserWarning for unquoted realms
2012-05-15 23:59:19 +08:00
Senthil Kumaran
6a2a6c2ee3
Issue #12541 : Be lenient with quotes around Realm field with HTTP Basic Authentation in urllib2.
2012-05-15 22:24:10 +08:00
Antoine Pitrou
b90252ed17
Followup to issue #14157 : respect the relative ordering of values produced by time.strptime().
...
Patch by Hynek.
2012-05-14 19:44:59 +02:00
Ned Deily
acdc56d0d0
Issue #14662 : Prevent shutil failures on OS X when destination does not
...
support chflag operations. (Patch by Hynek Schlawack)
2012-05-10 17:45:49 -07:00
Antoine Pitrou
c2b714ce21
Issue #14157 : Fix time.strptime failing without a year on February 29th.
...
Patch by Hynek Schlawack.
2012-05-10 20:17:46 +02:00
Jesus Cea
f2011e3e49
Closes #14768 : os.path.expanduser('~/a') doesn't works correctly when HOME is '/'
2012-05-10 05:01:11 +02:00
Georg Brandl
9f9970b15d
#13183 : backport fixes to test_pdb to 2.7 branch
2012-05-06 11:53:51 +02:00
Richard Oudkerk
9a16fa69dd
Fix for issue 14725 for 2.7 branch
2012-05-05 20:41:08 +01:00
Antoine Pitrou
c642f67c63
Skip test_algorithms (known remote hosts need SNI, which is only available on 3.2+)
2012-05-04 16:33:30 +02:00
Vinay Sajip
e5d3bc4700
Changed order of cleanup operations to be more sensible.
2012-05-03 12:03:29 +01:00
Charles-François Natali
dee8dadf31
os.popen().close() returns None on success, not 0...
2012-05-02 20:48:21 +02:00
Charles-François Natali
666a573fa6
Issue #14698 : Make test_posix more robust when the current UID doesn't have an
...
associated pwd entry.
2012-05-02 20:00:37 +02:00
Richard Oudkerk
0c200c282b
Issue #9400 : Partial backport of fix for #9244
...
In multiprocessing, a pool worker process would die
if the result/error could not be pickled. This could
cause pool methods to hang.
In 3.x this was fixed by 0aa8af79359d (which also added
an error_callback argument to some methods), but the fix
was not back ported.
2012-05-02 16:36:26 +01:00
Senthil Kumaran
a9e18cdd7f
fix windows test failure - issue13183
2012-05-02 07:59:36 +08:00
Benjamin Peterson
042c47b2c7
fix calling the classmethod descriptor directly ( closes #14699 )
2012-05-01 09:51:09 -04:00
Senthil Kumaran
7f6d4e1926
issue13183 - Fix pdb skipping frames after hitting a breakpoint and running step. Patch by Xavier de Gaye
2012-05-01 10:36:28 +08:00
Senthil Kumaran
f5aaf6f025
httplib test for early eof response. related to Issue13684
2012-04-29 10:15:31 +08:00
Vinay Sajip
00086bb7e8
Fixed test to work on Windows.
2012-04-25 10:45:27 +01:00
Vinay Sajip
5820cc0f06
Updated year in docstring/comment.
2012-04-24 23:17:29 +01:00
Vinay Sajip
885f6fd472
Issue #14632 : Updated WatchedFileHandler to deal with race condition. Thanks to John Mulligan for the problem report and patch.
2012-04-24 23:15:10 +01:00
Lars Gustäbel
231d474a7b
Issue #14160 : TarFile.extractfile() failed to resolve symbolic links when
...
the links were not located in an archive subdirectory.
2012-04-24 22:42:08 +02:00
Benjamin Peterson
d157a4c3dd
don't use a slot wrapper from a different special method ( closes #14658 )
...
This also alters the fix to #11603 . Specifically, setting __repr__ to
object.__str__ now raises a recursion RuntimeError when str() or repr() is
called instead of silently bypassing the recursion. I believe this behavior is
more correct.
2012-04-24 11:06:25 -04:00
R David Murray
c313b1d9b0
#14638 : pydoc now treats non-str __name__ as None instead of raising
...
Original patch by Peter Otten.
2012-04-23 13:27:11 -04:00
Benjamin Peterson
19e9beb2db
sleep here
2012-04-23 10:08:14 -04:00
Antoine Pitrou
52849bfaa3
Issue #14308 : Fix an exception when a "dummy" thread is in the threading module's active list after a fork().
2012-04-19 23:55:01 +02:00
Ezio Melotti
c45868ec69
#14538 : HTMLParser can now parse correctly start tags that contain a bare /.
2012-04-18 19:08:41 -06:00
Benjamin Peterson
76605557ea
SETUP_WITH acts like SETUP_FINALLY for the purposes of setting f_lineno ( closes #14612 )
2012-04-18 11:14:31 -04:00
Charles-François Natali
f838764444
Issue #5113 : Fix a test_posix failure on HP-UX, where non-root users can
...
chown() to root under certain circumstances.
2012-04-17 19:46:06 +02:00
Antoine Pitrou
9945a64a8b
Issue #14589 : Update certificate chain for sha256.tbs-internet.com, fixing a test failure in test_ssl.
2012-04-16 03:34:44 +02:00
Mark Dickinson
0407e96061
Issue 13496: Fix bisect.bisect overflow bug for large collections.
2012-04-15 16:43:19 +01:00
R David Murray
3f4ccbabaf
#14399 : zipfile now correctly handles comments added to empty zipfiles.
...
Patch by Serhiy Storchaka.
2012-04-12 18:42:47 -04:00
Senthil Kumaran
5f7e7345cf
Issue 10484 - Incorporate improvements to CGI module - Suggested by Glenn Linderman. Refactor code and tests
2012-04-12 02:23:23 +08:00
Senthil Kumaran
fb2e874707
fix the incorrect changes made for PATH_INFO value - Issue10484
2012-04-11 03:07:57 +08:00
Antoine Pitrou
b5588c3f94
Fix the patch for issue #7978 : select() raises select.error before 3.3, not OSError.
2012-04-09 01:41:34 +02:00
Antoine Pitrou
467a5c4067
Fix flakiness in test_socketserver
2012-04-09 01:15:06 +02:00
Antoine Pitrou
fa1d84107a
Issue #7978 : socketserver now restarts the select() call when EINTR is returned.
...
This avoids crashing the server loop when a signal is received.
Patch by Jerzy Kozera.
2012-04-09 00:47:24 +02:00
R David Murray
088a874c7f
Make test_mailbox runnable via python -m unittest.
2012-04-08 18:34:36 -04:00
Benjamin Peterson
b6e21a0725
remove uneeded line
2012-04-02 14:22:50 -04:00
Benjamin Peterson
f73813a8bb
prevent writing to stderr from messing up the exception state ( closes #14474 )
2012-04-02 11:15:17 -04:00
Alex Gaynor
afa2e470db
Added a new crasher that targets mutating the underlying storage of a buffer. All work done by Armin Rigo.
2012-03-30 08:45:25 -04:00
Giampaolo Rodola'
ea605cd152
attempt to fix asyncore buildbot failure
2012-03-23 15:04:27 +01:00
Giampaolo Rodola'
96cb5d15c1
fix #10340 : properly handle EINVAL on OSX and also avoid to call handle_connect() in case of a disconnetected socket which is not meant to connect.
2012-03-22 16:06:43 +01:00
Benjamin Peterson
eff19a13ed
check by equality for __future__ not identity ( closes #14378 )
2012-03-22 08:19:04 -04:00
R David Murray
5c2689a00c
#14333 : fix test_queue so it can be run via standard unittest test discovery.
2012-03-17 16:44:16 -04:00
Benjamin Peterson
dbc52f8a0d
check for string attribute names in old-style classes ( closes #14334 )
2012-03-16 10:58:46 -05:00
Benjamin Peterson
6e7832b04c
check to make sure the attribute is a string ( #14334 )
2012-03-16 09:32:59 -05:00
Senthil Kumaran
51a65c9161
2.7 - Issue #10484 : Fix the CGIHTTPServer's PATH_INFO handling problem
2012-03-16 01:07:16 -07:00
Senthil Kumaran
d17a898fcf
Fix closes Issue14281 - Test for cgi.escape by Brian Landers
2012-03-13 01:48:41 -07:00
Ezio Melotti
b56b6fff1f
#14179 : add tests for re.compile. Patch by Florian Mladitsch.
2012-03-13 01:25:40 +02:00
Ezio Melotti
b60156e809
#14161 : fix test failures on Windows.
2012-03-12 02:09:02 +02:00
Ezio Melotti
11f8b6872a
#14161 : fix the __repr__ of file objects to escape the file name.
2012-03-12 01:17:02 +02:00
Antoine Pitrou
f60845b70a
Issue #14252 : Fix subprocess.Popen.terminate() to not raise an error under Windows when the child process has already exited.
2012-03-11 19:29:12 +01:00
Jason R. Coombs
e107ab3b6c
Moved symlink support into its own module. Ported can_symlink from Python 3.2, skipping symlink test when it cannot be invoked (such as when the symlink privilege is not present).
2012-03-08 18:28:08 -05:00
Jason R. Coombs
ea4629afa6
Improve the test case to avoid spurious errors about already existing symlinks.
2012-03-08 10:31:29 -05:00
Jason R. Coombs
4a24283272
Adding regression test for issue6727
2012-01-15 11:45:27 -05:00
Benjamin Peterson
a8d458560e
allow cycles throught the __dict__ slot to be cleared ( closes #1469629 )
...
Patch from Armin, test from me.
2012-03-07 18:41:11 -06:00
Vinay Sajip
da563bfa48
Closes #14158 : We now track test_support.TESTFN cleanup, and test_mailbox uses shutil.rmtree for simpler code.
2012-03-06 20:07:15 +00:00
Meador Inge
104f18977f
Issue #14195 : Make WeakSet.__lt__ and WeakSet.__gt__ irreflexive.
2012-03-04 22:02:17 -06:00
Antoine Pitrou
94c2d6df54
Fix some set algebra methods of WeakSet objects.
2012-03-04 20:47:05 +01:00
Armin Rigo
1cb2e04238
Add a crasher for the documented issue of calling "Py_DECREF(self->xxx)";
2012-03-04 18:56:23 +01:00
Antoine Pitrou
c56bca31e9
Issue #14159 : Fix the len() of weak sets to return a better approximation when some objects are dead or dying.
...
Moreover, the implementation is now O(1) rather than O(n).
Thanks to Yury Selivanov for reporting.
2012-03-01 16:26:35 +01:00
Ezio Melotti
ca666245e7
#14089 : increase coverage of the fractions module. Patch by Oleg Plakhotnyuk.
2012-02-29 14:04:02 +02:00
Ezio Melotti
38ae5b2392
#10713 : Improve documentation for \b and \B and add a few tests. Initial patch and tests by Martin Pool.
2012-02-29 11:40:00 +02:00
Nadeem Vawda
a6bdfd1fa9
Give better failure messages in test_strptime (cf. issue #14113 ).
2012-02-29 00:21:40 +02:00
Antoine Pitrou
6a1cd1b3b1
Issue #13521 : dict.setdefault() now does only one lookup for the given key, making it "atomic" for many purposes.
...
Patch by Filip Gruszczyński.
2012-02-27 00:45:12 +01:00
Éric Araujo
e84e263a84
Add test file for scripts in Tools ( #13447 ).
...
When people find bugs in scripts such as reindent.py, msgfmt.py or
pygettext.py, we have to try to reproduce the bug manually, apply a fix
and test manually again. The alternative is to only read the code and
trust that it works. This test file is a way to stop that
unsatisfactory state of things and write proper unit tests instead.
2012-02-25 16:24:59 +01:00
Antoine Pitrou
341016e8bf
Fix sporadic test_os failure under Windows
2012-02-22 22:16:25 +01:00
Antoine Pitrou
4b670f541c
Fix (presumably) test_hash under big-endian systems (PPC).
2012-02-22 03:33:56 +01:00
Antoine Pitrou
93291534b7
Avoid py3k warnings related to sort() of unrelated types.
2012-02-22 00:28:46 +01:00
Antoine Pitrou
0607f731f2
Fix flaky os.urandom test.
2012-02-21 22:02:04 +01:00
Benjamin Peterson
e39ccef64c
carefully don't depend on any dict order
2012-02-21 09:07:40 -05:00
Ezio Melotti
36b7361fe7
HTMLParser is now able to handle slashes in the start tag.
2012-02-21 09:22:16 +02:00
Benjamin Peterson
72949bd511
this was supposed to die
2012-02-20 22:33:33 -05:00
Benjamin Peterson
11fa11bc95
fix test_gdb under hash randomization
2012-02-20 21:55:32 -05:00
Benjamin Peterson
5bc92e0824
don't rely on dict order here
2012-02-20 21:47:54 -05:00
Benjamin Peterson
aee9dfba4a
merge 2.6 with hash randomization fix
2012-02-20 21:44:56 -05:00
Barry Warsaw
b19fb2462e
Whitespace normalization
2012-02-20 20:44:15 -05:00
Barry Warsaw
1e13eb084f
- Issue #13703 : oCERT-2011-003: add -R command-line option and PYTHONHASHSEED
...
environment variable, to provide an opt-in way to protect against denial of
service attacks due to hash collisions within the dict and set types. Patch
by David Malcolm, based on work by Victor Stinner.
2012-02-20 20:42:21 -05:00
Benjamin Peterson
34b345b888
don't rely on the order of module clearing
2012-02-20 15:20:37 -05:00
Barry Warsaw
f5a5beb339
Back port Python 2.7 fix for test_invalid_redirect() in test_urllib.py.
2012-02-20 14:43:22 -05:00
Jesus Cea
f5f6af81ac
Fix Test for issue #13500
2012-02-19 04:20:45 +01:00
Jesus Cea
6e250998b6
Test for issue #13500
2012-02-19 03:54:08 +01:00
Charles-François Natali
e062466480
Issue #14001 : CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer
...
upon malformed POST request.
2012-02-18 14:30:34 +01:00
Gregory P. Smith
b4b605624d
Issue #2489 : Fix bug in _copy loop that could consume 100% cpu on EOF.
2012-02-16 00:40:03 -08:00
Ezio Melotti
65d36dab4d
#13987 : HTMLParser is now able to handle malformed start tags.
2012-02-15 13:19:10 +02:00
Ezio Melotti
d2307cb48a
#13987 : HTMLParser is now able to handle EOFs in the middle of a construct.
2012-02-15 12:44:23 +02:00
Ezio Melotti
369cbd744e
Fix an index, add more tests, avoid raising errors for unknown declarations, and clean up comments.
2012-02-13 20:36:55 +02:00
Ezio Melotti
f117443cb8
#13993 : HTMLParser is now able to handle broken end tags.
2012-02-13 16:28:54 +02:00
Ezio Melotti
4b92cc3f79
#13960 : HTMLParser is now able to handle broken comments.
2012-02-13 16:10:44 +02:00
Charles-François Natali
ebf691d64c
Skip test_threading.test_reinit_tls_after_fork() on platforms where fork()
...
can't be called reliably from a worker thread.
2012-02-08 21:27:56 +01:00
Ned Deily
2c8bf04308
Issue #10881 : Fix test_site failures with OS X framework builds.
2012-02-06 00:55:50 +01:00
Antoine Pitrou
60be6f8e37
Fix failing test on big-endian machines (issue #13806 ).
2012-02-04 16:44:21 +01:00
Ned Deily
22d2711cb6
Issue #13861 : Prevent test_apropos* test case failures in test_pydoc.
2012-02-03 23:13:03 +01:00
Charles-François Natali
6dce7d633f
Merge.
2012-02-02 20:36:47 +01:00
Petri Lehtinen
fe6f9d0edc
Document absoluteness of sys.executable
...
Closes #13402 .
2012-02-02 21:26:05 +02:00
Charles-François Natali
e0e88b0483
Issue #13817 : After fork(), reinit the ad-hoc TLS implementation earlier to fix
...
a random deadlock when fork() is called in a multithreaded process in debug
mode, and make PyOS_AfterFork() more robust.
2012-02-02 19:57:19 +01:00
Stefan Krah
da6db4f8b0
Issue #1813 : backport changeset that reverts a glibc workaround for the
...
Fedora buildbot.
2012-02-02 16:57:49 +01:00
Benjamin Peterson
caa0f61463
remove tests from really old regex module
2012-01-28 20:33:21 -05:00
Antoine Pitrou
88c51e8cb1
Issue #13806 : The size check in audioop decompression functions was too strict and could reject valid compressed data.
...
Patch by Oleg Plakhotnyuk.
2012-01-28 22:01:59 +01:00
Antoine Pitrou
7a556846d4
Fix intermittent test_ssl failure.
2012-01-27 17:33:01 +01:00
Antoine Pitrou
6f25d75f25
Remove debug output, fix assert (hopefully) and exercise signedness issues a bit more.
2012-01-25 15:38:32 +01:00
Antoine Pitrou
6e16f53855
Skip test failure under OpenIndiana
2012-01-25 02:49:47 +01:00
Antoine Pitrou
e3668e9842
Make test work under 32-bit systems, and when invoked through Lib/test/regrtest.py
...
(rather than `-m test.regrtest`)
2012-01-25 01:35:26 +01:00
Antoine Pitrou
d1c818a9c0
Issue #11235 : Fix OverflowError when trying to import a source file whose modification time doesn't fit in a 32-bit timestamp.
2012-01-24 17:44:06 +01:00
Senthil Kumaran
58c6062068
Fix Issue6631 - Disallow relative files paths in urllib*.open()
2012-01-21 11:43:02 +08:00
Łukasz Langa
631c258000
Fixes #13760 : picklability of ConfigParser exceptions
2012-01-20 17:02:08 +01:00
Nadeem Vawda
d7664dee0c
Issue #13781 : Fix GzipFile to work with os.fdopen()'d file objects.
2012-01-19 00:40:46 +02:00
Antoine Pitrou
e09bc1e8f5
Revert part of 13f56cd8dec1 (issue #1785 ) to avoid breaking getmembers() with unbound methods.
...
Python 3 isn't affected (unbound methods don't exist).
Thanks to Vincent Pelletier for noticing.
2012-01-18 17:39:01 +01:00
Antoine Pitrou
3b6a31412f
Issue #13589 : Fix some serialization primitives in the aifc module.
...
Patch by Oleg Plakhotnyuk.
2012-01-17 17:13:04 +01:00
Antoine Pitrou
9e0839006e
Remove unused certificate from the test directory.
2012-01-10 23:45:54 +01:00
Senthil Kumaran
bcd833f30f
- Issue #13642 : Unquote before b64encoding user:password during Basic
...
Authentication. Patch contributed by Joonas Kuorilehto and Michele Orrù.
2012-01-11 00:09:24 +08:00
Terry Jan Reedy
cfe6deb6f7
#11906 Make test_argparse work interactively by removing extra space
...
in comparison string that argparse does not add when program name is blank.
2012-01-09 18:20:09 -05:00
Benjamin Peterson
5fc58c6321
fix this to not depend on dictionary order
2012-01-03 16:23:11 -06:00
Antoine Pitrou
d76088d972
Issue #13636 : Weak ciphers are now disabled by default in the ssl module
...
(except when SSLv2 is explicitly asked for).
2012-01-03 22:46:48 +01:00
Charles-François Natali
3aa59e327c
Issue #9975 : socket: Fix incorrect use of flowinfo and scope_id. Patch by
...
Vilmos Nebehaj.
2012-01-02 15:38:27 +01:00
Benjamin Peterson
c32d5cb9ec
propgate error in other conditions
2011-12-27 15:16:34 -06:00
Lars Gustäbel
7d4d074c99
Issue #13639 : Accept unicode filenames in tarfile.open(mode="w|gz").
...
Passing a unicode filename to tarfile.open() along with mode "w|gz" failed
with a UnicodeError because the filename was not encoded properly before being
written to the gzipped stream in the FNAME extra field.
2011-12-21 19:27:50 +01:00
Antoine Pitrou
5b95eb90a7
Use context managers in test_ssl to simplify test writing.
2011-12-21 16:52:40 +01:00
Antoine Pitrou
17c07134a9
Fix test_import failure when run multiple times.
...
(2.7-only)
2011-12-21 16:01:53 +01:00
Antoine Pitrou
b8572a1673
Issue #1785 : Fix inspect and pydoc with misbehaving descriptors.
...
Also fixes issue #13581 : `help(type)` wouldn't display anything.
2011-12-21 10:16:14 +01:00
Charles-François Natali
8366b8417b
Followup to issue #11867 : Use socketpair(), since FreeBSD < 8 doesn't really
...
support multiprocessing.Event.
2011-12-20 11:47:23 +01:00
Charles-François Natali
3b8180739d
Issue #13453 : Try to increase some socket timeouts to make some buildbots stop
...
failing.
2011-12-19 16:11:04 +01:00
Victor Stinner
99cff3f182
Issue #13628 : python-gdb.py is now able to retrieve more frames in the Python
...
traceback if Python is optimized.
* delay the lookup of the size_t type, it is not available at startup
* The second argument of the PyFrameObjectPtr constructor is optional, as
done in other constructors
* iter_builtins() and iter_globals() methods of PyFrameObjectPtr returns
an empty tuple instead of None if Python is optimized
* Fix py-bt to handle correctly "optimized" frames
* Frame.get_pyop() tries to get the frame pointer from PyEval_EvalCodeEx()
if the pointer is optimized out in PyEval_EvalFrameEx()
2011-12-19 13:59:58 +01:00
Charles-François Natali
52aa260387
Issue #11867 : Make test_mailbox.test_lock_conflict deterministic (and fix a
...
race condition).
2011-12-19 12:17:16 +01:00
Ezio Melotti
6b7003a18c
#13576 : add tests about the handling of (possibly broken) condcoms.
2011-12-19 07:28:08 +02:00
Antoine Pitrou
6c3f4a8a24
Followup to #7502 : add __hash__ method and tests.
2011-12-18 20:20:17 +01:00
Antoine Pitrou
7a3d8aee8c
Issue #7502 : Fix equality comparison for DocTestCase instances.
...
Patch by Cédric Krier.
2011-12-18 19:27:45 +01:00
Charles-François Natali
27b154ea57
Issue #13453 : Fix a race condition in test_poplib.
2011-12-14 19:28:08 +01:00
Raymond Hettinger
f537702732
Issue #13573 : The csv.writer now uses the repr() for floats rather than str().
2011-12-11 22:31:09 -08:00
Benjamin Peterson
8b59c23a54
you can't get resource.error if you can't import resource
2011-12-10 12:31:42 -05:00
Charles-François Natali
97c9428c91
Issue #13453 : Catch EAI_FAIL in support.transient_internet.
2011-12-10 13:16:02 +01:00
Jason R. Coombs
77cd258550
Implemented suggested improvements for pdb test by Éric Araujo
2011-12-08 22:14:56 -05:00
Victor Stinner
0de2aaea7f
Issue #11886 : workaround an OS bug (time zone data) in test_time
...
Australian Eastern Standard Time (UTC+10) is called "EST" (as Eastern Standard
Time, UTC-5) instead of "AEST" on some operating systems (e.g. FreeBSD), which
is wrong. See for example this bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=93810
2011-12-08 00:32:51 +01:00
Ezio Melotti
4988ca5c55
#13531 : add a test for defaultdict with a non-callable arg. Patch by Mike Cheng.
2011-12-08 00:00:49 +02:00
Amaury Forgeot d'Arc
4bf21e28df
Issue #13546 : Fixed an overflow issue that could crash the intepreter when
...
calling sys.setrecursionlimit((1<<31)-1).
2.7 only.
2011-12-07 21:46:48 +01:00
Lars Gustäbel
9a38863d8c
Correctly detect bzip2 compressed streams with blocksizes other than 900k.
2011-12-06 13:07:09 +01:00
Jason R. Coombs
974d863fec
Issue #13211 : Add .reason attribute to HTTPError to implement parent class (URLError) interface.
2011-11-07 10:44:25 -05:00
Ezio Melotti
ab731a3556
#8414 : add more tests for "assert". Initial patch by Gregory Nofi.
2011-12-02 18:17:30 +02:00
Charles-François Natali
27bc4d07cc
Issue #13415 : Skip test_os.test_unset_error on FreeBSD and OS X.
2011-11-27 13:05:14 +01:00
Meador Inge
710671a722
Issue #12618 : fix py_compile unit tests to handle different drives on Windows
2011-11-26 11:30:21 -06:00
Meador Inge
89749407af
Issue #12618 : create unit tests for the py_compile module
2011-11-25 23:28:18 -06:00
Meador Inge
0e30317891
Issue #13380 : add an internal function for resetting the ctypes caches
2011-11-25 22:25:06 -06:00
Antoine Pitrou
a5d5bb997b
Issue #12856 : Ensure child processes do not inherit the parent's random seed for filename generation in the tempfile module.
...
Patch by Brian Harring.
2011-11-25 21:28:15 +01:00
Victor Stinner
091b6ef793
Issue #13436 : Fix unsetenv() test on Windows
2011-11-22 22:30:19 +01:00
Victor Stinner
53853c3fa9
Issue #13415 : os.unsetenv() doesn't ignore errors anymore.
2011-11-22 22:20:13 +01:00
Charles-François Natali
6392d7f68b
Issue #12156 : Skip test_multiprocessing on systems which don't support enough
...
POSIX semaphores (among which FreeBSD < 8).
2011-11-22 18:35:18 +01:00
Victor Stinner
975134e2a2
Issue #13093 : Fix error handling on PyUnicode_EncodeDecimal()
...
Add tests for PyUnicode_EncodeDecimal()
2011-11-22 01:54:19 +01:00
Antoine Pitrou
5aa7df320f
Issue #13322 : Fix BufferedWriter.write() to ensure that BlockingIOError is
...
raised when the wrapped raw file is non-blocking and the write would block.
Previous code assumed that the raw write() would raise BlockingIOError, but
RawIOBase.write() is defined to returned None when the call would block.
Patch by sbt.
2011-11-21 20:16:44 +01:00
Victor Stinner
9d38b0dcb2
Close #13401 : Skip TestFileTypeW of test_argparse if the current user is root
...
Patch written by Arfrever Frehtes Taifersar Arahesis.
2011-11-20 23:09:09 +01:00
Ezio Melotti
169ed5946a
#11112 : Fix typo in a base class in test_socket.
2011-11-18 18:33:14 +02:00
Ezio Melotti
00dc60beee
#13358 : HTMLParser now calls handle_data only once for each CDATA.
2011-11-18 18:00:40 +02:00