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
Ross Lagerwall
104c3f1020
Issue #10963 : Ensure that subprocess.communicate() never raises EPIPE.
2011-04-05 15:24:34 +02:00
Steven Bethard
e3c11b44e3
Issue #9347 : Fix formatting for tuples in argparse type= error messages.
2011-04-04 01:47:52 +02:00
Guido van Rossum
b885a5bbc8
Merge cleanup.
2011-03-29 13:04:24 -07:00
Guido van Rossum
07ef62c47c
Merge issue 11662 from 2.6.
2011-03-29 12:53:55 -07:00
Guido van Rossum
079381d236
Merge issue 11662 from 2.5.
2011-03-29 12:51:16 -07:00
guido@google.com
b7ef35b582
Merge urllib/urllib2 security fix from 2.6 branch.
2011-03-29 11:14:01 -07:00
guido@google.com
9a9fdfad59
Merge urllib/urllib2 security fix from 2.5 branch.
2011-03-29 10:48:23 -07:00
Benjamin Peterson
77d466079a
Correct handling of functions with only kwarg args in getcallargs ( closes #11256 )
...
A patch from Daniel Urban.
2011-03-28 17:32:31 -05:00
guido@google.com
f1509306d2
Add tests for the urllib[2] vulnerability. Change to raise exceptions.
2011-03-28 13:47:01 -07:00
Martin v. Löwis
7aea63ff65
Add missing file from #11696 .
2011-03-27 21:01:03 +02:00