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
Ezio Melotti
93bbb6a9a6
#4147 : minidom's toprettyxml no longer adds whitespace around a text node when it is the only child of an element. Initial patch by Dan Kenigsberg.
2011-11-18 17:30:28 +02:00
Jason R. Coombs
5d032c0f95
PDB now will properly escape backslashes in the names of modules it executes. Fixes #7750
2011-11-17 18:03:24 -05:00
Antoine Pitrou
30402549de
Issue #13333 : The UTF-7 decoder now accepts lone surrogates
...
(the encoder already accepts them).
2011-11-15 01:49:40 +01:00
Victor Stinner
16ed86831b
Issue #7732 : Try to fix the a failing test on Windows
...
It doesn't matter if imp.find_module() fails with ImportError or IOError, but
it should not crash.
2011-11-14 20:50:36 +01:00
Ezio Melotti
0f1571ce7f
#1745761 , #755670 , #13357 , #12629 , #1200313 : improve attribute handling in HTMLParser.
2011-11-14 18:04:05 +02:00
Ezio Melotti
74592919d6
Group tests about attributes in a separate class.
2011-11-08 02:07:18 +02:00
Petri Lehtinen
ab42abd160
Update mailbox.Maildir tests
...
Remove a sleep to fix transient test failures. Use skewfactor of -3 to
make it work on systems that have 1 second precision for time.time().
Closes #11999
Refs #13254
2011-11-12 21:02:42 +02:00
Jesus Cea
cb65f3249a
Partial patch for issue #11812 : Take care of test_telnetlib.py
2011-11-08 16:06:44 +01:00
Jesus Cea
71094b5d5b
Solved a potential deadlock in test_telnetlib.py. Related to issue #11812
2011-11-08 15:54:42 +01:00
Vinay Sajip
53703d9d72
Closes #13361 : Raise correct exception type.
2011-11-07 10:13:18 +00:00
Vinay Sajip
74ab3440ba
Closes #13661 : Check added for type of logger name.
2011-11-07 08:49:16 +00:00
Petri Lehtinen
3b9d92aefe
Revert "Accept None as start and stop parameters for list.index() and tuple.index()"
...
Issue #13340 .
2011-11-06 20:59:01 +02:00
Ezio Melotti
030aa35a1b
Silence a couple of warnings.
2011-11-06 18:50:32 +02:00
Ezio Melotti
b22c3fe5d8
Fix another callable warning.
2011-11-06 17:50:52 +02:00
Ezio Melotti
152d61aa5b
Fix tests now that the callable warning is gone.
2011-11-06 17:17:52 +02:00
Petri Lehtinen
819d8d447d
Accept None as start and stop parameters for list.index() and tuple.index()
...
Closes #13340 .
2011-11-05 23:18:06 +02:00
Petri Lehtinen
49aa72ed4c
Fix Maildir initialization so that maildir contents are read correctly.
...
Closes #13254 .
2011-11-05 09:50:37 +02:00
Florent Xicluna
5f761d79c0
Issue #13140 : Fix the daemon_threads attribute of ThreadingMixIn.
2011-11-04 10:15:57 +01:00
Charles-François Natali
09f871462f
Issue #13308 : Fix test_httpservers failures when run as root.
2011-11-02 19:32:54 +01:00
Florent Xicluna
b82cbc33f5
Fix merge in changeset e1dde980a92c.
2011-11-01 23:54:16 +01:00
Florent Xicluna
0965ee213e
Issue #2892 : preserve iterparse events in case of SyntaxError
2011-11-01 23:34:41 +01:00
Ezio Melotti
7e82b276dd
#670664 : Fix HTMLParser to correctly handle the content of ``<script>...</script>`` and ``<style>...</style>``.
2011-11-01 14:09:56 +02:00
Ned Deily
1aacd7bb02
Issue #13304 : Skip test case if user site-packages disabled (-s or
...
PYTHONNOUSERSITE). (Patch by Carl Meyer)
2011-10-31 16:14:52 -07:00
Antoine Pitrou
cf9943de97
Backout redundant changeset 1de4d92cd6a4
2011-10-31 20:23:00 +01:00
Senthil Kumaran
87e585581d
Port to 2.7 - issue 10817 - Fix urlretrieve function to raise
...
ContentTooShortError even when reporthook is None. Patch by Jyrki Pulliainen.
2011-11-01 02:44:45 +08:00
Barry Warsaw
39aec0171d
test_protocol_sslv2(): Skip this test if ssl.PROTOCOL_SSLv2 is not
...
defined (as is the case with Ubuntu 11.10).
2011-10-31 14:08:15 -04:00
Antoine Pitrou
6361ea2b07
Remove unstable SSL tests in the absence of ssl.OP_NO_{SSLv2,SSLv3,TLSv1}
2011-10-30 21:31:34 +01:00
Benjamin Peterson
e96102b45b
bring is_integer into tested existence
2011-10-28 19:42:48 -04:00
Barry Warsaw
be83698f21
- Issue #13218 : Fix test_ssl failures on Debian/Ubuntu.
2011-10-28 16:14:44 -04:00
Benjamin Peterson
7789f270d8
adjust for change in assert bytecode
2011-10-27 08:53:32 -04:00
Benjamin Peterson
78fc70503e
add a test for an assertion with tuple msg
2011-10-27 08:20:01 -04:00
Petri Lehtinen
6d089df1b8
Issue #10860 : Skip the new test if HTTPS is not available
2011-10-26 21:25:56 +03:00
Charles-François Natali
46f990e58c
Issue #10332 : multiprocessing: fix a race condition when a Pool is closed
...
before all tasks have completed.
2011-10-24 18:43:51 +02:00
Antoine Pitrou
5a77fe92bd
Issue #1548891 : The cStringIO.StringIO() constructor now encodes unicode
...
arguments with the system default encoding just like the write() method
does, instead of converting it to a raw buffer.
2011-10-22 21:26:01 +02:00
Antoine Pitrou
f678e82240
Oops, forgot issue number
2011-10-21 22:22:43 +02:00
Antoine Pitrou
a5016cd0f7
Add test for fix of issue #1730114 .
2011-10-21 22:22:04 +02:00
Senthil Kumaran
ddd40312d5
Fix closes Issue6090 - Raise a ValueError, instead of failing with unrelated
...
exceptions, when a document with timestamp earlier than 1980 is provided to
zipfile. Patch contributed by Petri Lehtinen.
2011-10-20 01:38:35 +08:00
Senthil Kumaran
59a06d412d
Fix closes Issue12529 - cgi.parse_header failure on double quotes and
...
semicolons. Patch by Ben Darnell and Petri Lehtinen.
2011-10-20 00:52:24 +08:00
Ezio Melotti
1e87da16ea
Remove duplication.
2011-10-19 10:39:35 +03:00
Łukasz Langa
7a15390f83
Fixes #10860 : Handle empty port after port delimiter in httplib
...
Thanks, Shawn Ligocki!
3.x version will come as a separate patch.
2011-10-18 17:16:00 +02:00
Benjamin Peterson
a7b0976c3e
PyEval_CallObject requires a tuple of args ( closes #13186 )
2011-10-15 13:43:21 -04:00
Éric Araujo
ece7079b54
Branch merge
2011-10-09 06:33:54 +02:00
Éric Araujo
1a1a8a0e31
Fix test_sysconfig when prefix != exec-prefix ( #9100 ).
...
Reported by Zsolt Cserna.
2011-10-08 02:49:12 +02:00
Ned Deily
c4a2745174
Issue #7367 : Ensure test directory always gets removed.
2011-10-07 12:01:18 -07:00
Ned Deily
ac6874c4bb
Issue #7367 : Add test case to test_pkgutil for walking path with
...
an unreadable directory.
2011-10-06 14:17:41 -07:00
Ned Deily
1a96f8de79
Issue #7425 : Refactor test_pydoc test case for '-k' behavior and add
...
new test cases for importing bad packages and unreadable packages dirs.
2011-10-06 14:17:34 -07:00
Charles-François Natali
9ffcbf71a5
Issue #13070 : Fix a crash when a TextIOWrapper caught in a reference cycle
...
would be finalized after the reference to its underlying BufferedRWPair's
writer got cleared by the GC.
2011-10-06 19:09:45 +02:00
Éric Araujo
e954ecb9ba
Branch merge
2011-10-06 13:19:34 +02:00
Amaury Forgeot d'Arc
c9539d593e
Enable the only tests for sys.gettrace
2011-10-05 22:34:51 +02:00
Éric Araujo
2710bc4b68
Fix typo and case in a recently added test
2011-10-05 02:35:09 +02:00
Antoine Pitrou
09debc9a5b
Avoid testing stuff that's been fixed in 2.7 on older Pythons
2011-10-04 12:00:13 +02:00
Antoine Pitrou
561a821e93
Issue #7689 : Allow pickling of dynamically created classes when their
...
metaclass is registered with copyreg. Patch by Nicolas M. Thiéry and
Craig Citro.
2011-10-04 09:34:48 +02:00
R David Murray
c8faf9bb0c
#4147 : minidom's toprettyxml no longer adds whitespace to text nodes.
...
Patch by Dan Kenigsberg.
2011-10-01 16:49:25 -04:00
Antoine Pitrou
f06eb46918
Issue #13034 : When decoding some SSL certificates, the subjectAltName extension could be unreported.
2011-10-01 19:30:58 +02:00
Victor Stinner
63c22fac72
Issue #7732 : Fix a crash on importing a module if a directory has the same name
...
than a Python module (e.g. "__init__.py"): don't close the file twice.
PyFile_FromFile() does also close the file if PyString_FromString() failed. It
did already close the file on fill_file_fields() error (e.g. if the file is a
directory).
2011-09-23 19:37:03 +02:00
Victor Stinner
51b719814e
Issue #12931 : xmlrpclib now encodes Unicode URI to ISO-8859-1, instead of
...
failing with a UnicodeDecodeError.
2011-09-23 01:15:32 +02:00
Charles-François Natali
2156594d8c
Fix a race condition in test_socket.ThreadableTest: the client is reported
...
ready before having been set up.
2011-09-21 22:02:27 +02:00
Charles-François Natali
f8413b29c0
Issue #12981 : test_multiprocessing: catch ImportError when importing
...
multiprocessing.reduction, which may not be available (e.g. if the OS doesn't
support FD passing over Unix domain sockets).
2011-09-21 18:44:49 +02:00
Jesus Cea
c23484b21f
Close #13022 : _multiprocessing.recvfd() doesn't check that file descriptor was actually received
2011-09-21 03:47:39 +02:00
Senthil Kumaran
0d4c34c6ec
Port the fix for Issue12924 (missing quote_plus) to 2.7 branch.
2011-09-13 06:42:21 +08:00
Jesus Cea
6faf907e6d
Fix issue #12948 : multiprocessing test failures can hang the buildbots
2011-09-09 22:15:16 +02:00
Jesus Cea
6f6016bc59
Close issue #12948 : multiprocessing test failures can hang the buildbots
2011-09-09 20:26:57 +02:00
Éric Araujo
a971df3cd5
Fix test_sysconfig when run from a Python installed under /site ( #10086 ).
...
Patch by Hallvard B Furuseth.
2011-08-31 16:48:17 +02:00
Charles-François Natali
2a34eb3104
Issue #12786 : Set communication pipes used by subprocess.Popen CLOEXEC to avoid
...
them being inherited by other subprocesses.
2011-08-25 21:20:54 +02:00
Antoine Pitrou
a1a8da8bf5
Issue #11657 : Fix sending file descriptors over 255 over a multiprocessing Pipe.
...
Also added some tests.
2011-08-23 19:54:20 +02:00
Charles-François Natali
cdaafe0f9e
Issue #12821 : Fix test_fcntl failures on OpenBSD 5.
2011-08-23 19:42:02 +02:00
Ezio Melotti
12682b10a7
#9200 : backport tests but run them on wide builds only.
2011-08-22 23:46:30 +03:00
Antoine Pitrou
808cec536a
Issue #12213 : Fix a buffering bug with interleaved reads and writes that
...
could appear on io.BufferedRandom streams.
2011-08-20 15:40:58 +02:00
Éric Araujo
410024a8fc
Branch merge
2011-08-19 14:24:38 +02:00
Nadeem Vawda
860593653b
Fix resource leaks in test_subprocess.
2011-08-19 05:22:24 +02:00
Éric Araujo
e7329f47e7
Guard shutil._make_archive against a logger=None argument.
...
Backporting two lines from the 3.x tests was enough to trigger the bug.
I also took the opportunity of making the logging call lazy.
2011-08-19 03:07:39 +02:00
Charles-François Natali
a8085d306e
Issue #12650 : fix failures on some buildbots, when a subprocess takes a long
...
time to spawn.
2011-08-19 00:26:38 +02:00
Charles-François Natali
100df0f2b0
Issue #12650 : only run the tests on Unix.
2011-08-18 17:56:02 +02:00
Charles-François Natali
b02302c5cf
Issue #12650 : Fix a race condition where a subprocess.Popen could leak
...
resources (FD/zombie) when killed at the wrong time.
2011-08-18 17:18:28 +02:00
Barry Warsaw
edfba8244c
The simplest possible fix for the regression in bug 12752 by encoding unicodes
...
to 8-bit strings.
2011-08-15 19:17:12 -04:00
Ezio Melotti
ea7b6f6e2a
#12266 : move the tests in test_unicode.
2011-08-15 10:04:28 +03:00
Ezio Melotti
15d6b65ead
#12266 : Fix str.capitalize() to correctly uppercase/lowercase titlecased and cased non-letter characters.
2011-08-15 09:22:24 +03:00
Raymond Hettinger
3ea5224c43
Issue 12717: Fix-up an earlier backport in ConfigParser.
2011-08-09 12:07:15 -07:00
Senthil Kumaran
b5bd4c88b5
Fix closes issue12698 - make the no_proxy environment variable handling a bit lenient (accomodate spaces in between the items)
2011-08-06 12:24:33 +08:00
Senthil Kumaran
28696fe491
add svn+ssh testcase for urljoin.
2011-08-03 22:06:05 +08:00
Senthil Kumaran
f432aeca7c
Fix closes issue12683 - urljoin to work with relative join of svn scheme.
2011-08-03 18:31:59 +08:00
Stefan Krah
01a3ee8b21
Backport 68b5f87566fb
2011-08-02 01:17:48 +02:00
Benjamin Peterson
3facb8cc1a
running tests enables us to discover that they actually work
2011-07-30 23:39:39 -05:00
Senthil Kumaran
23c2104118
using test_support.transient_internet helper method in the urllib2net test.
2011-07-31 11:48:54 +08:00
Éric Araujo
9a528306b9
Make “pydoc somebuiltin.somemethod” work ( #8887 )
2011-07-29 17:34:35 +02:00
Ross Lagerwall
d8e3901478
Issue #12607 : In subprocess, fix issue where if stdin, stdout or stderr is
...
given as a low fd, it gets overwritten.
2011-07-27 18:54:53 +02:00
Senthil Kumaran
7d7702b581
merge from 3.2 - fix urlopen behavior on sites which do not send (or obsfuscates) Connection: Close header.
2011-07-27 09:37:17 +08:00
Ned Deily
d88131afd9
Issue #8746 : Use tempfile module to get tempdir and randomize the
...
link file name.
2011-07-26 13:52:14 -07:00
Antoine Pitrou
4cfae027b3
Issue #1813 : Fix codec lookup and setting/getting locales under Turkish locales.
2011-07-24 02:51:01 +02:00
Nadeem Vawda
b42c53e442
Issue #10883 : Fix socket leaks in urllib.request.
...
* ftpwrapper now uses reference counting to ensure that the underlying socket
is closed when the ftpwrapper object is no longer in use
* ftplib.FTP.ntransfercmd() now closes the socket if an error occurs
Initial patch by Victor Stinner.
2011-07-23 15:51:16 +02:00
Senthil Kumaran
578617ad45
merge from 3.2 - Fix closes issue12581 - Increase the urllib.parse test coverage (cases applicable to 2.7). Patch by Petter Haggholm.
2011-07-23 18:41:43 +08:00
Benjamin Peterson
77820242dd
verify the types of AST strings and identifiers ( closes #12609 and #12610 )
2011-07-22 10:39:50 -05:00
R David Murray
9522595d70
#7484 : no more <> around addresses in VRFY or EXPN
...
The RFC doesn't say that they are allowed; apparently many mailers accept
them, but not postfix. Contributions to this patch were made by Felipe Cruz
and Catalin Iacob.
2011-07-18 21:34:04 -04:00
Alex Gaynor
9737648c74
Backport 2eb8789e30e7.
2011-07-17 16:44:31 -07:00
Antoine Pitrou
304f0f952d
Issue #11603 : Fix a crash when __str__ is rebound as __repr__.
...
Patch by Andreas Stührk.
2011-07-15 21:22:50 +02:00
Benjamin Peterson
c3349cd22e
port 8d05f697acd4 ( #11627 )
2011-07-15 14:15:40 -05:00
Victor Stinner
b30ac940db
Issue #12250 : test_socketserver uses a timeout of 60 seconds instead of 20
...
test_shutdown() may fail on very slow buildbots like FreeBSD 6.4 just because
of the arbitrary timeout.
2011-07-14 14:53:24 +02:00
Ned Deily
0ab67ee79e
Issue #12549 : Correct test_platform to not fail when OS X returns 'x86_64'
...
as the processor type on some Mac systems. Also fix NameError in fallback
_mac_ver_gestalt function. And remove out-of-date URL in docs.
2011-07-13 15:05:31 -07:00
Antoine Pitrou
1616645a00
Issue #12149 : Update the method cache after a type's dictionnary gets
...
cleared by the garbage collector. This fixes a segfault when an instance
and its type get caught in a reference cycle, and the instance's
deallocator calls one of the methods on the type (e.g. when subclassing
IOBase).
Diagnosis and patch by Davide Rizzo.
2011-07-12 22:04:20 +02:00
Antoine Pitrou
4a4a0fed07
Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
...
failure in name resolution.
Should fix a buildbot failure.
2011-07-09 02:34:05 +02:00
Antoine Pitrou
2960308c0c
Avoid failing in test_robotparser when mueblesmoraleda.com is flaky and
...
an overzealous DNS service (e.g. OpenDNS) redirects to a placeholder
Web site.
2011-07-08 19:40:15 +02:00
Antoine Pitrou
a4d58d26a1
Avoid failing in test_urllibnet.test_bad_address when some overzealous
...
DNS service (e.g. OpenDNS) resolves a non-existent domain name. The test
is now skipped instead.
2011-07-08 19:14:19 +02:00
Victor Stinner
ba8b3a2ca7
Close #12501 : Adjust callable() warning: callable() is only not supported in
...
Python 3.1. callable() is again supported in Python 3.2.
2011-07-08 02:07:45 +02:00
Victor Stinner
b78fed9ee6
Issue #12493 : skip test_communicate_eintr() if signal.SIGALRM is missing
2011-07-05 14:50:35 +02:00
Victor Stinner
e790131dc6
Issue #12493 : subprocess: communicate() handles EINTR
...
subprocess.Popen.communicate() now also handles EINTR errors if the process has
only one pipe.
2011-07-05 14:08:01 +02:00
Victor Stinner
4c41f84033
test_io: make quiet the DeprecationWarning('classic int division')
2011-07-05 13:29:26 +02:00
Victor Stinner
42dcc679c2
test_array: make quiet the DeprecationWarning
2011-07-05 13:14:17 +02:00
Victor Stinner
49d495fa25
Issue #12429 : Skip interrupted write tests on FreeBSD <= 7
...
On FreeBSD, the SIGALRM signal is sometimes received by the reader thread.
2011-07-04 11:44:46 +02:00
Ned Deily
46268c49f6
Issue #8716 : Avoid crashes caused by Aqua Tk on OSX when attempting to run
...
test_tk or test_ttk_guionly under a username that is not currently logged
in to the console windowserver (as may be the case under buildbot or ssh).
2011-07-03 21:52:35 -07:00
Victor Stinner
65c153547b
Issue #12467 : warnings: fix a race condition if a warning is emitted at
...
shutdown, if globals()['__file__'] is None.
2011-07-04 03:05:37 +02:00
Charles-François Natali
7c20ad32fd
Issue #12352 : In test_free_from_gc(), restore the GC thresholds even if the GC
...
wasn't enabled at first.
2011-07-02 14:08:27 +02:00
Charles-François Natali
414d0faedc
Issue #12352 : Fix a deadlock in multiprocessing.Heap when a block is freed by
...
the garbage collector while the Heap lock is held.
2011-07-02 13:56:19 +02:00
Victor Stinner
041d2e1e1e
Issue #11870 : Skip test_threading.test_2_join_in_forked_process() on platforms
...
with known OS bugs
Share the list of platforms with known OS bugs with other tests. Patch written
by Charles-François Natali.
2011-07-01 15:04:03 +02:00
Raymond Hettinger
bf7a266074
Fixup repr for dict_proxy objects.
2011-06-30 00:44:36 +01:00
Ned Deily
43e1054e38
Issue #8746 : Correct faulty configure checks so that os.chflags() and
...
os.lchflags() are once again built on systems that support these
functions (*BSD and OS X). Also add new stat file flags for OS X
(UF_HIDDEN and UF_COMPRESSED). Also add additional tests for
os.chflags() and os.lchflags(). (Tests by Garrett Cooper)
2011-06-27 23:41:53 -07:00
Benjamin Peterson
c98198d3ca
fix ws
2011-06-27 17:51:18 -05:00
Benjamin Peterson
90ebedc626
add more ast tests ( closes #11302 )
...
A patch from Vincent Legoll.
2011-06-27 17:46:06 -05:00
Victor Stinner
f64a0cffca
Issue #12285 : multiprocessing.Pool() raises a ValueError if the number of
...
processes if negative or null.
2011-06-20 17:54:33 +02:00
R David Murray
f1138bb1b6
#11700 : proxy object close methods can now be called multiple times
...
This makes them work like the close provided by regular file objects. This
patch also backports the close-the-underlying-file code for _ProxyFile objects
that was introduced along with context manager support in the 3.x branch.
2011-06-17 22:23:04 -04:00
Victor Stinner
c74a6ba2d6
Issue #12133 : AbstractHTTPHandler.do_open() of urllib.request closes the HTTP
...
connection if its getresponse() method fails with a socket error. Patch written
by Ezio Melotti.
2011-06-17 14:06:27 +02:00
Benjamin Peterson
0eb4ac4c62
allow "fake" filenames in findsource ( closes #9284 )
...
This allows findsource() to work in doctests.
A patch from Dirkjan Ochtman.
2011-06-11 15:53:11 -05:00
Benjamin Peterson
b30d5c711e
merge heads
2011-06-10 11:33:58 -05:00
Benjamin Peterson
8b8162d868
merge 2.7.2 release branch with fix for #12009
2011-06-10 11:33:41 -05:00
Benjamin Peterson
43ee1a5d90
fix regression in netrc comment handling ( closes #12009 )
2011-06-10 11:32:52 -05:00
R David Murray
873c583244
#10694 : zipfile now ignores garbage at the end of a zipfile.
...
Original fix by 'rep', final patch (with tests) by Xuanji Li.
2011-06-09 16:01:09 -04:00
Mark Dickinson
a493ca3fae
Issue #12080 : Fix a performance issue in Decimal._power_exact that caused some corner-case Decimal.__pow__ calls to take an unreasonably long time.
2011-06-04 18:24:15 +01:00
Victor Stinner
e3826c7774
Issue #12016 : Add test_errorhandle() to TestBase_Mapping of
...
test_multibytecodec_support. Improve also error message of the
test_errorhandle() of TestBase.
2011-06-03 23:56:43 +02:00
Raymond Hettinger
45b082935d
Fix named tuples to work with vars().
2011-06-02 20:40:35 -07:00
Victor Stinner
e9b185f263
Issue #12085 : Fix test_subprocess for my previous commit
...
Replace support by test_support, and add captured_stderr() function.
2011-06-01 01:57:48 +02:00
Victor Stinner
776e69b5b3
Close #12085 : Fix an attribute error in subprocess.Popen destructor if the
...
constructor has failed, e.g. because of an undeclared keyword argument. Patch
written by Oleg Oshmyan.
2011-06-01 01:03:00 +02:00
Victor Stinner
d9f5292443
Issue #12057 : Add tests for ISO 2022 codecs
...
iso2022_jp, iso2022_jp_2 and iso2022_kr
2011-05-30 23:58:21 +02:00
Ned Deily
482f908410
Issue #9670 : Increase the default stack size for secondary threads on
...
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(patch by Ronald Oussoren)
2011-05-28 00:11:54 -07:00
Benjamin Peterson
4fa68ab10b
raise an ValueError in getvalue() on closed StringIO ( closes #12161 )
...
Thanks for Catalin Iacob for the patch.
2011-05-26 09:56:41 -05:00
Victor Stinner
daf17e9bc8
Issue #12175 : RawIOBase.readall() now returns None if read() returns None.
2011-05-25 22:52:37 +02:00
Victor Stinner
5100a405dc
Issue #12175 : FileIO.readall() now raises a ValueError instead of an IOError if
...
the file is closed.
2011-05-25 22:15:36 +02:00
Victor Stinner
9e5cdcc243
Issue #12057 : Add tests for the HZ encoding
2011-05-25 00:19:07 +02:00
Victor Stinner
40b41e1ffd
Issue #12100 : Don't reset incremental encoders of CJK codecs at each call to
...
their encode() method anymore, but continue to call the reset() method if the
final argument is True.
2011-05-24 22:29:13 +02:00
Benjamin Peterson
8de87a6403
correctly lookup __dir__
2011-05-23 16:11:05 -05:00
Victor Stinner
6c603c4593
test_codecs now removes the temporay file (created by the test)
2011-05-23 16:19:31 +02:00
Victor Stinner
2e7f39e889
Issue #12012 : test_ssl uses test_support.import_module()
...
Skip the whole file if the SSL module is missing. It was already the case,
except that the SkipTest exception was raised in test_main().
This commit fixes an error in test_ssl if the ssl module is missing.
2011-05-22 13:22:28 +02:00
Victor Stinner
f58f1c33c1
Issue #12124 : zipimport doesn't keep a reference to zlib.decompress() anymore
...
to be able to unload the module.
2011-05-21 02:13:22 +02:00
Victor Stinner
2c5e28ebc2
Issue #12057 : Fix .hgeol and test_multibytecodec_support for the conversion of
...
the CJK encoding testcase BLOB into multiple text files.
2011-05-17 15:49:56 +02:00
Senthil Kumaran
4dd89ce6bf
Fix closes issue #12088 - fixes the tarfile.extractall issue when the
...
symlinks/hardlink was broken. It handles now in a graceful manner (No exception
is raised, behavior similar GNU tar).
2011-05-17 10:12:18 +08:00
Victor Stinner
72bb99d343
Issue #11614 : Fix test_linecache, cjkencodings_test.py doesn't exist anymore
2011-05-17 01:18:33 +02:00
Victor Stinner
73e3e76be5
Issue #12057 : Convert CJK encoding testcase BLOB into multiple text files
2011-05-16 17:16:18 +02:00
Ronald Oussoren
a70286b71d
Issue #9516 : avoid errors in sysconfig when MACOSX_DEPLOYMENT_TARGET is set in shell.
...
Without this patch python will fail to start properly when the environment
variable MACOSX_DEPLOYMENT_TARGET is set on MacOSX and has a value that is
not compatible with the value during Python's build. This is caused by code
in sysconfig that was only meant to be used in disutils.
2011-05-15 16:44:27 +02:00
Gregory P. Smith
fb1d60c800
Fixes Issue #12059 : Properly handle missing hash functions even when
...
the expected builtin modules are not present.
This includes a unittest for __get_builtin_constructor() in the face
of such an error.
2011-05-14 15:07:53 -07:00
Nadeem Vawda
0cc4fd9df7
Issue #12050 : zlib.decompressobj().decompress() now clears the unconsumed_tail
...
attribute when called without a max_length argument.
2011-05-14 14:29:07 +02:00
Ezio Melotti
4dcb7be696
#7960 : fix docstrings for captured_output and captured_stdout.
2011-05-14 08:19:43 +03:00
Ezio Melotti
e3992eb743
#5723 : Improve json tests to be executed with and without accelerations.
2011-05-14 06:24:53 +03:00
Ezio Melotti
720f8dea19
Change import_fresh_module to work with packages.
2011-05-14 06:02:25 +03:00
Antoine Pitrou
ee46a7bf9c
Issue #12062 : In the `io` module, fix a flushing bug when doing a certain
...
type of I/O sequence on a file opened in read+write mode (namely: reading,
seeking a bit forward, writing, then seeking before the previous write but
still within buffered data, and writing again).
2011-05-13 00:31:52 +02:00
Antoine Pitrou
47d1d0dc30
Issue #8498 : In socket.accept(), allow to specify 0 as a backlog value in
...
order to accept exactly one connection. Patch by Daniel Evers.
2011-05-10 19:16:03 +02:00
Victor Stinner
b1241f9619
(Merge 3.1) Issue #12012 : ssl.PROTOCOL_SSLv2 becomes optional
...
OpenSSL is now compiled with OPENSSL_NO_SSL2 defined (without the SSLv2
protocol) on Debian: fix the ssl module on Debian Testing and Debian Sid.
Optimize also ssl.get_protocol_name(): speed does matter!
2011-05-10 01:52:03 +02:00
Ezio Melotti
b47553a19b
Some more tests were incorrectly marked as C specific.
2011-05-09 18:32:18 +03:00
Martin v. Löwis
591c2dfa42
Issue 11164: Remove obsolete allnodes test from minidom test.
...
Patch by Arfrever Frehtes Taifersar Arahesis.
2011-05-09 08:19:13 +02:00
Ezio Melotti
5c5d7e2511
#11910 : Fix test_heapq to skip the C tests when _heapq is missing.
2011-05-09 06:54:53 +03:00
Ezio Melotti
193c34ba86
#11910 : change import_fresh_module to return None when one of the "fresh" modules can not be imported.
2011-05-09 06:28:42 +03:00
Benjamin Peterson
01c9a16031
import_fresh_module ought to be in __all__
2011-05-08 15:32:04 -05:00
Raymond Hettinger
1bd816e58e
Fix cut and paste error.
2011-05-07 15:19:34 -07:00
Raymond Hettinger
8dd0624660
Some tests were incorrectly marked as C specific.
2011-05-07 14:16:42 -07:00
Antoine Pitrou
21ce8f0d66
Issue #11927 : SMTP_SSL now uses port 465 by default as documented. Patch by Kasun Herath.
2011-05-07 19:59:33 +02:00
Ezio Melotti
0639be6505
#10169 : Fix argument parsing in socket.sendto() to avoid error masking.
2011-05-07 19:21:22 +03:00
Nadeem Vawda
5ae6c42f52
Fix potential resource leak in test_mmap.
2011-05-07 14:34:22 +02:00
Nadeem Vawda
d0a8f16031
Issue #11277 : Fix tests - crash will not trigger if the file is closed and reopened.
2011-05-07 14:12:12 +02:00
Nadeem Vawda
0d837ef2a5
Issue #11277 : Add tests for mmap crash when using large sparse files on OS X.
...
Also, reduce code duplication in LargeMmapTests.
Original patch by Steffen Daode Nurpmeso.
2011-05-07 13:17:16 +02:00
Nadeem Vawda
3b066a7e82
Issue #11277 : Remove useless test from test_zlib.
2011-05-07 11:28:03 +02:00
R David Murray
8b26c4b8ea
#11999 : sync based on comparing mtimes, not mtime to system clock
2011-05-06 21:56:22 -04:00
Ronald Oussoren
58d6b1b7a4
Backport fix for issue #10684 from 3.x
2011-05-06 11:31:33 +02:00
Victor Stinner
28a8e96378
Issue #11277 : oops, fix checksum values of test_zlib on 32 bits
2011-05-04 21:40:36 +02:00
Victor Stinner
7fd90c403d
Issue #11277 : test_zlib tests a buffer of 1 GB on 32 bits
...
(instead of a buffer of 2 GB)
2011-05-04 21:27:39 +02:00
Victor Stinner
fb5d3e75bb
Issue #11277 : fix issue number in a test_zlib comment
2011-05-04 14:02:11 +02:00
Victor Stinner
e4163e2c8d
Issue #10276 : Fix test_zlib, m may be undefined in the finally block
2011-05-03 17:25:28 +02:00
Victor Stinner
f9fb43492c
Issue #10276 : test_zlib checks that inputs of 2 GB are handled correctly by
...
crc32() and adler32(). Patch written by Steffen Daode Nurpmeso.
2011-05-03 15:19:23 +02:00
Victor Stinner
0a92d1849e
Issue #8651 : PyArg_Parse*() functions raise an OverflowError if the file
...
doesn't have PY_SSIZE_T_CLEAN define and the size doesn't fit in an int (length
bigger than 2^31-1 bytes).
2011-05-03 15:09:24 +02:00
Victor Stinner
e363ec1057
(Merge 3.1) Issue #9756 : When calling a method descriptor or a slot wrapper
...
descriptor, the check of the object type doesn't read the __class__ attribute
anymore. Fix a crash if a class override its __class__ attribute (e.g. a proxy
of the str type).
2011-05-01 23:43:37 +02:00
Senthil Kumaran
f3eb7d3454
skip the extractall test on platforms where os.symlink is not available.
2011-04-28 17:00:19 +08:00
Senthil Kumaran
011525ee92
Fix closes issue10761: tarfile.extractall failure when symlinked files are present.
2011-04-28 15:30:31 +08:00
Ezio Melotti
bdfa2e69e2
Backport test from #11926 .
2011-04-28 07:59:33 +03:00
Ezio Melotti
e3685f6b1b
#6780 : fix starts/endswith error message to mention that tuples are accepted too.
2011-04-26 05:12:51 +03:00
Jesus Cea
44e81687a2
startswith and endswith don't accept None as slice index. Patch by Torsten Becker. ( closes #11828 )
2011-04-20 16:39:15 +02:00
Brian Curtin
0d65433568
Fix #8886 . Use context managers throughout zipfile tests.
...
This was fixed in py3k SVN. Consider this a backport.
2011-04-19 21:15:55 -05:00
Nadeem Vawda
bafc6a9fca
Fix sporadic failure in test_startfile.
...
Wait for the child process to terminate before ending the test, so that the
regrtest cleanup code doesn't get an error when it tries to delete the
temporary CWD.
2011-04-19 01:35:58 +02:00
Raymond Hettinger
37c0fe56b9
Fix minor subclassing issue with collections.Counter
2011-04-15 13:12:21 -07:00
Ezio Melotti
c283a85e12
Issue #5057 : fix a bug in the peepholer that led to non-portable pyc files between narrow and wide builds while optimizing BINARY_SUBSCR on non-BMP chars (e.g. u"\U00012345"[0]).
2011-04-15 16:14:04 +03:00
Senthil Kumaran
ddaea1c38a
Issue #11467 : Fix urlparse behavior when handling urls which contains scheme
...
specific part only digits. Patch by Santoso Wijaya.
2011-04-15 18:07:33 +08:00
Senthil Kumaran
a99b761972
Fix Issue11474 - url2pathname() handling of '/C|/' on Windows
2011-04-14 12:54:35 +08:00
Raymond Hettinger
9b342c6fd4
Issue 3051: make pure python code pass the same tests as the C version.
2011-04-13 11:15:58 -07:00
Senthil Kumaran
49c440877e
Fix Issue11703 - urllib2.get_url does not handle fragment in url properly.
2011-04-13 07:31:45 +08:00
Raymond Hettinger
7c9d34722d
Issue 11747: Fix output format for context diffs.
2011-04-12 15:48:25 -07:00
Ezio Melotti
8b4367ec10
#4877 : Fix a segfault in xml.parsers.expat while attempting to parse a closed file.
2011-04-11 03:44:28 +03:00
Ned Deily
04cb72f968
Issue9670: Back out changeset b0d2b696da19; test fails on other platforms
...
and on OS X with pydebug.
2011-04-09 14:59:30 -07:00
Ned Deily
e427f0f432
Issue #9670 : Increase the default stack size for secondary threads on
...
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(Patch by Ronald Oussoren)
2011-04-09 12:29:58 -07:00
Ross Lagerwall
fe2f1ad5b5
Issue #11719 : Fix message about unexpected test_msilib skip.
...
Patch by Nadeem Vawda.
2011-04-09 20:39:50 +02:00
Antoine Pitrou
c2b0d76bf3
Issue #11766 : increase countdown waiting for a pool of processes to start
...
up. Hopefully fixes transient buildbot failures.
2011-04-06 22:54:14 +02:00
Senthil Kumaran
bb4e470dcd
hg pull/merge - Changes to accomodate.
2011-04-06 14:41:42 +08:00
Senthil Kumaran
792eb5dc84
Issue #10762 : Guard against invalid/non-supported format string '%f' on Windows. Patch Santoso Wijaya.
2011-04-06 14:27:47 +08:00
Alexander Belopolsky
07019bcaab
Issue #11576 : Fixed timedelta subtraction glitch on big timedelta values
2011-04-05 22:12:22 -04:00
Ned Deily
5f511826c2
Issue #7108 : Fix test_commands to not fail when special attributes ('@'
...
or '.') appear in 'ls -l' output.
2011-04-05 17:16:09 -07:00
Ezio Melotti
9f1ffb2ae9
#7311 : fix HTMLParser to accept non-ASCII attribute values.
2011-04-05 20:40:52 +03:00