Ronald Oussoren
f4542eb433
(merge from 3.2) 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 17:13:47 +02:00
Ronald Oussoren
222e89a598
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:46:11 +02:00
Gregory P. Smith
5ed2e779f1
Issue #1746656 : Add if_nameindex, if_nametoindex, if_indextoname
...
methods to the socket module.
2011-05-15 00:26:45 -07:00
Nadeem Vawda
beb552c97c
Merge: Fix copy-paste mistake in new zlib test.
2011-05-15 00:49:20 +02:00
Nadeem Vawda
760155cc52
Merge: Fix copy-paste mistake in new zlib test.
2011-05-15 00:48:57 +02:00
Nadeem Vawda
1161a9ca40
Fix copy-paste mistake in new zlib test.
2011-05-15 00:48:24 +02:00
Gregory P. Smith
369f35a2cc
fix whitespace
2011-05-14 15:35:56 -07:00
Gregory P. Smith
a3221f8209
fix whitespace
2011-05-14 15:35:19 -07:00
Gregory P. Smith
11ddc999e0
merge heads
2011-05-14 15:33:43 -07:00
Gregory P. Smith
ec075e6479
merge heads
2011-05-14 15:32:19 -07:00
Gregory P. Smith
873cab2890
merge heads.
2011-05-14 15:26:35 -07:00
Nadeem Vawda
ccb33bf002
Merge: #8650 : Make zlib.[de]compressobj().[de]compress() 64-bit clean.
...
Raise an OverflowError if the input data is too large, instead of silently
truncating the input and returning an incorrect result.
2011-05-15 00:23:40 +02:00
Nadeem Vawda
565d659dcd
Merge: #8650 : Make zlib.[de]compressobj().[de]compress() 64-bit clean.
...
Raise an OverflowError if the input data is too large, instead of silently
truncating the input and returning an incorrect result.
2011-05-15 00:20:52 +02:00
Nadeem Vawda
0c3d96ae1d
Issue #8650 : Make zlib.[de]compressobj().[de]compress() 64-bit clean.
...
Raise an OverflowError if the input data is too large, instead of silently
truncating the input and returning an incorrect result.
2011-05-15 00:19:50 +02:00
Gregory P. Smith
79aa5bf5ed
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:15:49 -07:00
Gregory P. Smith
12c9d028ed
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:15:49 -07:00
Kurt B. Kaiser
d365a7b6cb
Merge from 3.2
...
Issue #6378 : Further adjust idle.bat to start associated Python
2011-05-14 17:46:44 -04:00
Kurt B. Kaiser
4b16ff2c44
Merge heads
2011-05-14 17:31:54 -04:00
Kurt B. Kaiser
f369b8152d
Merge from 3.1
...
Issue #6378 : Further adjust idle.bat to start associated Python
2011-05-14 17:22:14 -04:00
Kurt B. Kaiser
dfbe1592db
Issue #6378 : Further adjust idle.bat to start associated Python
2011-05-14 17:20:09 -04:00
Nadeem Vawda
905cca011b
Merge fix for memory leaks in zlib.compress() and .decompress().
...
Also, make sure that test_zlib tests decompress() for overly-large inputs.
2011-05-14 23:18:07 +02:00
Nadeem Vawda
154bdf92fc
Fix memory leaks in zlib.compress() and .decompress().
...
Also, make sure that test_zlib tests decompress() for overly-large inputs.
2011-05-14 23:07:36 +02:00
Nadeem Vawda
1b8a417d9f
Issue #8650 : Backport 64-bit safety fixes for compress() and decompress().
2011-05-14 22:26:55 +02:00
Nadeem Vawda
9c405c470b
Merge: #12050 : zlib.decompressobj().decompress() now clears the unconsumed_tail
...
attribute when called without a max_length argument.
2011-05-14 14:19:56 +02:00
Nadeem Vawda
5eef502de0
Merge: #12050 : zlib.decompressobj().decompress() now clears the unconsumed_tail
...
attribute when called without a max_length argument.
2011-05-14 14:15:47 +02:00
Nadeem Vawda
7619e88adb
Issue #12050 : zlib.decompressobj().decompress() now clears the unconsumed_tail
...
attribute when called without a max_length argument.
2011-05-14 14:05:20 +02:00
Ezio Melotti
63db5b6510
Merge with 3.2 and also remove captured_output from __all__ (see #7960 ).
2011-05-14 14:57:15 +03:00
Ezio Melotti
07352b084c
Update __all__ and docstring.
2011-05-14 14:51:18 +03:00
Ezio Melotti
c3afbb9542
Skip test in test_fileinput when zlib is missing.
2011-05-14 10:10:53 +03:00
Ezio Melotti
6b8934053a
#7960 : merge with 3.2.
2011-05-14 08:44:12 +03:00
Ezio Melotti
e728d72d8a
#7960 : merge with 3.1.
2011-05-14 08:43:25 +03:00
Ezio Melotti
fc778fd067
#7960 : fix docstrings for captured_output and captured_stdout.
2011-05-14 08:22:47 +03:00
Ezio Melotti
32e3fdc2d0
#5723 : merge with 3.2.
2011-05-14 06:52:55 +03:00
Ezio Melotti
6b60fb9148
#5723 : merge with 3.1.
2011-05-14 06:47:51 +03:00
Ezio Melotti
3c0d8a1cc7
#5723 : Improve json tests to be executed with and without accelerations.
2011-05-14 06:38:03 +03:00
Ezio Melotti
4e03e9dc8d
Merge with 3.2.
2011-05-14 06:24:18 +03:00
Ezio Melotti
3659f27ad3
Merge with 3.1.
2011-05-14 06:23:20 +03:00
Ezio Melotti
fec3ad1036
Change import_fresh_module to work with packages.
2011-05-14 06:02:25 +03:00
Victor Stinner
c729c25615
(Merge 3.2) Issue #11996 : libpython (gdb), replace "py-bt" command by
...
"py-bt-full" and add a smarter "py-bt" command printing a classic Python
traceback.
2011-05-13 17:53:22 +02:00
Vinay Sajip
252048c8a1
test_logging: extended time range for rollover test.
2011-05-13 16:41:57 +01:00
Victor Stinner
e670c889cc
Issue #11996 : libpython (gdb), replace "py-bt" command by "py-bt-full" and add
...
a smarter "py-bt" command printing a classic Python traceback.
2011-05-13 17:40:15 +02:00
Vinay Sajip
a171f9c6a3
test_logging: fixed bug in failure diagnostics.
2011-05-13 14:45:08 +01:00
Vinay Sajip
a552ca6fd0
Issue #12068 : Fix appears to have worked; added more diagnostics for rare failures.
2011-05-13 12:16:04 +01:00
Vinay Sajip
672c581633
Added diagnostics to test_logging, after reverting last change.
2011-05-13 07:09:40 +01:00
Georg Brandl
cc5ea6860f
Merge in changes from 3.2.1b1 release repo.
2011-05-13 06:50:56 +02:00
Antoine Pitrou
b89b31a158
Issue #12062 : 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:25:53 +02:00
Antoine Pitrou
00dd182b8e
Issue #12062 : 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:16:28 +02:00
Antoine Pitrou
7c40489180
Issue #12062 : 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:13:33 +02:00
Kurt B. Kaiser
30536d1b77
Merge from 3.2
...
Issue #11896 : Save on Close failed despite selecting "Yes" in dialog.
2011-05-12 15:36:42 -04:00
Kurt B. Kaiser
b00d0c4944
Merge from 3.1
2011-05-12 15:30:18 -04:00
Kurt B. Kaiser
0a42982316
Issue #11896 : Save on Close failed despite selecting "Yes" in dialog.
...
_tkinter.c is returning <class '_tkinter.Tcl_Obj'> sometimes. Don't use
tkinter.messagebox.Message - use the helper functions which convert to str.
2011-05-12 15:25:24 -04:00
Vinay Sajip
06c768a35a
TimedTRotatingFileHandler test now improved to minimise chances of failure on very slow machines.
2011-05-12 16:18:29 +01:00
Gregory P. Smith
0ef3e399b8
normalize whitespace.
2011-05-11 22:20:11 -07:00
Gregory P. Smith
c9557af441
merge - 7a3f3ad83676 Fixes Issue #12044 .
2011-05-11 22:18:23 -07:00
Gregory P. Smith
6b65745430
- Issue #12044 : Fixed subprocess.Popen when used as a context manager to
...
wait for the process to end when exiting the context to avoid unintentionally
leaving zombie processes around.
2011-05-11 21:42:08 -07:00
Antoine Pitrou
3486a98dcd
Issue #9971 : Write an optimized implementation of BufferedReader.readinto().
...
Patch by John O'Connor.
2011-05-12 01:57:53 +02:00
Kurt B. Kaiser
9dd41fa970
Merge from 3.2
2011-05-11 14:18:13 -04:00
Kurt B. Kaiser
6551baa5a5
Correct version in IDLE NEWS.txt
2011-05-11 13:54:44 -04:00
Kurt B. Kaiser
bc3e13818b
Merge from 3.1
2011-05-11 13:48:54 -04:00
Kurt B. Kaiser
e147806da9
Issue #1028 : Tk returns invalid Unicode null in %A: UnicodeDecodeError.
...
With Tk < 8.5 _tkinter.c:PythonCmd() raised UnicodeDecodeError, caused IDLE to
exit. Converted to valid Unicode null in PythonCmd().
2011-05-11 12:24:17 -04:00
Senthil Kumaran
4de00a2e87
Fix closes Issue #11799 : urllib.request Authentication Handlers will raise a
...
ValueError when presented with an unsupported Authentication Scheme.
2011-05-11 21:17:57 +08:00
Victor Stinner
ba9c6645f7
Issue #10419 : Fix build_scripts command of distutils to handle correctly
...
non-ASCII scripts. Open and write the script in binary mode, but ensure that
the shebang is decodable from UTF-8 and from the encoding of the script.
2011-05-11 00:57:29 +02:00
Victor Stinner
530712625b
Issue #11169 : compileall module uses repr() to format filenames and paths to
...
escape surrogate characters and show spaces.
2011-05-11 00:36:28 +02:00
Ezio Melotti
f8d6fd605d
#12051 : merge with 3.2.
2011-05-11 01:23:41 +03:00
Victor Stinner
1eb4f28c6d
Close #10419 , issue #6011 : build_scripts command of distutils handles correctly
...
non-ASCII path (path to the Python executable). Open and write the script in
binary mode, but ensure that the shebang is decodable from UTF-8 and from the
encoding of the script.
2011-05-11 00:14:28 +02:00
Victor Stinner
1947477072
Close #10419 , issue #6011 : build_scripts command of distutils handles correctly
...
non-ASCII path (path to the Python executable). Open and write the script in
binary mode, but ensure that the shebang is decodable from UTF-8 and from the
encoding of the script.
2011-05-11 00:14:28 +02:00
Ezio Melotti
f188bc5d46
#12051 : merge with 3.1.
2011-05-11 01:10:27 +03:00
Ezio Melotti
136726537f
#12051 : Fix segfault in json.dumps() while encoding highly-nested objects using the C accelerations.
2011-05-11 01:02:56 +03:00
Victor Stinner
cd9dd37974
Issue #11888 : skip some log2 tests on Mac OS X Tiger
...
System log2() is not accurate for exact power of 2.
2011-05-10 23:40:17 +02:00
Antoine Pitrou
74b4885cc9
Issue #12054 : use support.find_unused_port() instead of reinventing the wheel
2011-05-10 23:37:42 +02:00
Antoine Pitrou
ccc87b53db
Issue #12054 : use support.find_unused_port() instead of reinventing the wheel
2011-05-10 23:37:11 +02:00
Antoine Pitrou
3cade9942e
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:19:13 +02:00
Antoine Pitrou
1be815aac4
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:29 +02:00
Vinay Sajip
463ac515ee
Issue #12039 : Add end_headers() call to avoid BadStatusLine.
2011-05-10 09:10:08 +01:00
Vinay Sajip
e73afad50f
Issue #12039 : Now suppress spurious select.error raised on FreeBSD when the server (an asyncore.dispatcher) is closed.
2011-05-10 07:48:28 +01:00
Victor Stinner
17ca323e7c
(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 00:48:41 +02:00
Victor Stinner
ee18b6f2fd
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 00:38:00 +02:00
Vinay Sajip
f223116001
Update incorrect comment.
2011-05-09 22:05:50 +01:00
Antoine Pitrou
606c3f5486
Issue #12041 : Make test_wait3 more robust.
2011-05-09 21:17:02 +02:00
Antoine Pitrou
5aa878c61a
os.dup()-then-close() can be replaced with detach()
2011-05-09 21:00:28 +02:00
Vinay Sajip
60ccd8214f
Improved Windows test coverage.
2011-05-09 17:32:09 +01:00
Ezio Melotti
5fffaab1ad
Merge with 3.2.
2011-05-09 18:42:32 +03:00
Ezio Melotti
219a5dcc78
Merge with 3.1.
2011-05-09 18:40:42 +03:00
Ezio Melotti
f9756c2336
Some more tests were incorrectly marked as C specific.
2011-05-09 18:36:53 +03:00
Senthil Kumaran
c7ae19b6a7
Issue #3709 : a flush_headers method to BaseHTTPRequestHandler which manages the
...
sending of headers to output stream and flushing the internal headers buffer.
Patch contribution by Andrew Schaaf
2011-05-09 23:25:02 +08:00
Antoine Pitrou
87cf220972
Issue #11743 : Rewrite multiprocessing connection classes in pure Python.
2011-05-09 17:04:27 +02:00
Mark Dickinson
df77e3d4a0
Issue #11188 : In log2 tests, create powers of 2 using ldexp(1, n) instead of the less reliable 2.0**n.
2011-05-09 14:02:45 +01:00
Victor Stinner
502ff6c920
Issue #10811 : Use TestCase.assertRaises() in the new test
2011-05-09 12:50:41 +02:00
Gerhard Haering
936d518dc8
#10811 : Fix recursive usage of cursors. Instead of crashing, raise a ProgrammingError now.
2011-05-09 12:24:09 +02:00
Mark Dickinson
2cffff938b
Fix nonunique test ids in math_testcases.txt.
2011-05-09 08:18:57 +01:00
Martin v. Löwis
7c038b4726
merge 11164
2011-05-09 08:12:19 +02:00
Martin v. Löwis
867754e3e3
merge 11164
2011-05-09 08:10:38 +02:00
Martin v. Löwis
2f48d892d4
Stop trying to use _xmlplus in the xml module. Closes #11164 .
...
Patch by Arfrever Frehtes Taifersar Arahesis.
2011-05-09 08:05:43 +02:00
Ezio Melotti
37c02c9697
#11910 : merge with 3.2.
2011-05-09 07:30:21 +03:00
Ezio Melotti
19f7ca25e5
#11910 : merge with 3.1.
2011-05-09 07:27:20 +03:00
Ezio Melotti
fd69abb358
Some tests were incorrectly marked as C specific.
2011-05-09 07:20:47 +03:00
Ezio Melotti
8269a44d50
#11910 : Fix test_heapq to skip the C tests when _heapq is missing.
2011-05-09 07:15:04 +03:00
Ezio Melotti
3843de3b0e
#11910 : merge with 3.2.
2011-05-09 06:44:36 +03:00
Ezio Melotti
313fa9d365
#11910 : merge with 3.1.
2011-05-09 06:43:14 +03:00
Ezio Melotti
199e0857f9
#11910 : change import_fresh_module to return None when one of the "fresh" modules can not be imported.
2011-05-09 06:41:55 +03:00
Victor Stinner
fa0e3d52d6
Issue #11888 : Add log2 function to math module. Patch written by Mark
...
Dickinson.
2011-05-09 01:01:09 +02:00
Victor Stinner
3de49192aa
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-09 00:42:58 +02:00
Benjamin Peterson
3a0792da6e
merge 3.2
2011-05-08 15:35:09 -05:00
Benjamin Peterson
31dc3735a5
merge 3.1
2011-05-08 15:34:24 -05:00
Benjamin Peterson
262c5827a5
put import_fresh_module in __all__
2011-05-08 15:32:46 -05:00
Ezio Melotti
845f1526a3
Refactor buggy test to correctly use the msg argument of assertRaises.
2011-05-08 20:23:57 +03:00
Georg Brandl
da71013c11
Update suspicious ignore file.
2011-05-08 09:10:29 +02:00
Georg Brandl
cd79cdc5e6
Bump to 3.2.1b1.
2011-05-08 09:03:36 +02:00
Victor Stinner
3a7f0f05c1
Issue #8407 : Remove debug code from test_signal
...
I don't think that we still need it.
2011-05-08 02:10:36 +02:00
Victor Stinner
d49b1f14de
Issue #8407 : The signal handler writes the signal number as a single byte
...
instead of a nul byte into the wakeup file descriptor. So it is possible to
wait more than one signal and know which signals were raised.
2011-05-08 02:03:15 +02:00
Victor Stinner
b3e7219abf
Issue #8407 : Add pthread_kill(), sigpending() and sigwait() functions to the
...
signal module.
2011-05-08 01:46:11 +02:00
Antoine Pitrou
2407ce1a96
Merge
2011-05-07 19:48:18 +02:00
Antoine Pitrou
6ef5dfdb94
Merge
2011-05-07 19:47:24 +02:00
Antoine Pitrou
4d1cd0a0a0
Merge
2011-05-07 19:45:34 +02:00
Antoine Pitrou
d7f12f30e4
Merge: Issue #11927 : SMTP_SSL now uses port 465 by default as documented.
2011-05-07 19:42:39 +02:00
Antoine Pitrou
5bcc50c1b5
Merge: Issue #11927 : SMTP_SSL now uses port 465 by default as documented.
2011-05-07 19:41:33 +02:00
Antoine Pitrou
c1d520634a
Issue #11927 : SMTP_SSL now uses port 465 by default as documented. Patch by Kasun Herath.
2011-05-07 19:39:37 +02:00
Giampaolo Rodola'
fde86ff673
merge
2011-05-07 19:35:36 +02:00
Giampaolo Rodola'
ffc235cbbf
merge with 3.2
2011-05-07 19:11:06 +02:00
Giampaolo Rodola'
24befa87dc
merge with 3.1
2011-05-07 19:09:34 +02:00
Giampaolo Rodola'
0b5c21f9c9
#12002 - ftplib's abort() method raises TypeError
2011-05-07 19:03:47 +02:00
Ezio Melotti
8b7664d0b8
#5421 : merge with 3.2.
2011-05-07 19:51:47 +03:00
Ezio Melotti
4c1aebd88b
#5421 : merge with 3.1.
2011-05-07 19:50:28 +03:00
Ezio Melotti
63e4230c38
#5421 : add tests.
2011-05-07 19:47:48 +03:00
Giampaolo Rodola'
842e567530
reverting 9688977ef567 committed by accident
2011-05-07 18:47:31 +02:00
Vinay Sajip
fd28502fcf
Closed resource leak in SysLogHandler.
2011-05-07 17:01:22 +01:00
Ezio Melotti
9c18778695
#12017 : merge with 3.2.
2011-05-07 18:29:14 +03:00
Ezio Melotti
06383ee090
#12017 : merge with 3.1.
2011-05-07 18:15:34 +03:00
Giampaolo Rodola'
dbf0454082
test_ftplib.py: change client default timeout from 10 to 2. Hanging for 10 seconds is way too much when we expect a server response which never comes in.
2011-05-07 17:08:34 +02:00
Giampaolo Rodola'
e9514b877b
merge heads
2011-05-07 17:08:04 +02:00
Giampaolo Rodola'
b28e09421d
test_ftplib.py: change client default timeout from 10 to 2. Hanging for 10 seconds is way too much when we expect a server response which never comes in.
2011-05-07 17:02:21 +02:00
Ezio Melotti
362b95102f
#12017 : Fix segfault in json.loads() while decoding highly-nested objects using the C accelerations.
2011-05-07 17:58:09 +03:00
Vinay Sajip
b37cd39202
Changed where socket close is called on connection failure.
2011-05-07 15:55:47 +01:00
Giampaolo Rodola'
a55efb3b6f
#11072- applying http://bugs.python.org/review/11072/show suggestions
2011-05-07 16:06:59 +02:00
Vinay Sajip
052a899d5a
Merge.
2011-05-07 13:44:50 +01:00
Vinay Sajip
2261b325ab
Close socket on connection failure.
2011-05-07 13:44:11 +01:00
Nadeem Vawda
da91d1892a
Merge: Fix potential resource leak in test_mmap.
2011-05-07 14:36:14 +02:00
Nadeem Vawda
b0b0579625
Merge: Fix potential resource leak in test_mmap.
2011-05-07 14:35:36 +02:00
Nadeem Vawda
7420b70240
Fix potential resource leak in test_mmap.
2011-05-07 14:35:05 +02:00
Nadeem Vawda
ce79230173
Merge: #11277 : Fix tests - crash will not trigger if the file is closed and reopened.
2011-05-07 14:17:27 +02:00
Nadeem Vawda
044dfadd1c
Merge: #11277 : Fix tests - crash will not trigger if the file is closed and reopened.
2011-05-07 14:16:50 +02:00
Nadeem Vawda
909f6d2fba
Issue #11277 : Fix tests - crash will not trigger if the file is closed and reopened.
2011-05-07 14:14:53 +02:00
Nadeem Vawda
02e6569628
Merge: #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:11:59 +02:00
Nadeem Vawda
c2bb073742
Merge: #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:08:54 +02:00
Nadeem Vawda
ced1056925
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:01:50 +02:00
Victor Stinner
7bba62fd68
faulthandler: dump all threads by default
...
* Set the default value of all_threads arguments to True
* Py_FatalError() dumps all threads, instead of only the current thread
Dump only the current thread is not reliable. In some cases, Python is unable
to retrieve the state of the current thread and so is unable to dump the
traceback. faulthandler keeps a reference to the interpreter and so is always
able to dump the traceback of all threads.
2011-05-07 12:43:00 +02:00
R David Murray
46070ebddf
#11999 : sync based on comparing mtimes, not mtime to system clock
2011-05-06 22:26:27 -04:00
R David Murray
94b8ee3bff
#11999 : sync based on comparing mtimes, not mtime to system clock
2011-05-06 22:20:34 -04:00
R David Murray
caed7fe0ff
#11999 : sync based on comparing mtimes, not mtime to system clock
2011-05-06 22:07:19 -04:00
Vinay Sajip
a6bbbe43ef
Refined rollover test for slow test machines.
2011-05-06 19:06:00 +01:00
Giampaolo Rodola'
d78def9474
Issue #11072 : added MLSD command (RFC-3659) support to ftplib.
2011-05-06 19:49:08 +02:00
Antoine Pitrou
0872816dc1
Issue #8808 : The IMAP4_SSL constructor now allows passing an SSLContext
...
parameter to control parameters of the secure channel. Patch by Sijin
Joseph.
2011-05-06 18:49:52 +02:00
Ronald Oussoren
45fd0c9931
merge from 3.2
2011-05-06 17:11:44 +02:00
Ronald Oussoren
6355c16d36
ntpath.samefile fails to detect that "A.TXT" and "a.txt" refer to the same file on Windows XP.
...
Noticed while researching a buildbot failure due to a patch for issue #10684 .
2011-05-06 17:11:07 +02:00
Antoine Pitrou
ff9bfca482
Issue #12000 : When a SSL certificate has a subjectAltName without any
...
dNSName entry, ssl.match_hostname() should use the subject's commonName.
Patch by Nicolas Bareil.
2011-05-06 15:20:55 +02:00
Antoine Pitrou
1c86b44506
Issue #12000 : When a SSL certificate has a subjectAltName without any
...
dNSName entry, ssl.match_hostname() should use the subject's commonName.
Patch by Nicolas Bareil.
2011-05-06 15:19:49 +02:00
Ezio Melotti
b4dc2502ad
Issue #10775 : assertRaises, assertRaisesRegex, assertWarns, and assertWarnsRegex now accept a keyword argument 'msg' when used as context managers. Initial patch by Winston Ewert.
2011-05-06 15:01:41 +03:00
Ronald Oussoren
136148e97d
merge from 3.2
2011-05-06 11:17:40 +02:00
Ronald Oussoren
78349b06af
merge from 3.1
2011-05-06 10:57:22 +02:00
Ronald Oussoren
f51738b10e
Fix for issue 10684: Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)
2011-05-06 10:23:04 +02:00
Vinay Sajip
89c8862ee5
Close handler opened in test.
2011-05-06 07:19:41 +01:00
Raymond Hettinger
1c7b7f7fbe
Userlist.copy() wasn't returning a UserList.
2011-05-05 14:34:35 -07:00
Raymond Hettinger
8cd2e5f751
Sync-up minor code edits with the default branch.
2011-05-05 14:15:12 -07:00
Vinay Sajip
28338fbdba
Added additional output to help diagnose buildbot failures.
2011-05-05 21:23:42 +01:00
Raymond Hettinger
102d874999
Sync-up minor code edits with the default branch.
2011-05-05 11:49:12 -07:00
Raymond Hettinger
7c5dc912ba
Avoid codec spelling issues by just using the utf-8 default.
2011-05-05 11:38:06 -07:00
Raymond Hettinger
f90ba8a9a2
Avoid codec spelling issues by just using the utf-8 default.
2011-05-05 11:35:50 -07:00
Antoine Pitrou
b596dc7c86
Merge: Use shared testing facilities in test_threading
2011-05-05 20:18:19 +02:00
Antoine Pitrou
c4d7864e0e
Use shared testing facilities in test_threading
2011-05-05 20:17:32 +02:00
R David Murray
a4433ee300
Merge: #11873 : Improve test regex so random directory names don't cause test to fail
2011-05-05 12:17:50 -04:00
R David Murray
66a18fd801
#11873 : Improve test regex so random directory names don't cause test to fail
2011-05-05 11:52:44 -04:00
Nick Coghlan
cb395187d0
Merge from 3.2
2011-05-06 00:03:49 +10:00
Nick Coghlan
fdc2c5596e
Remove trailing whitespace
2011-05-06 00:02:12 +10:00
Nick Coghlan
7ceb1804b0
Merge #11647 update from 3.2
2011-05-05 23:58:57 +10:00
Nick Coghlan
0ded3e307b
Issue #11647 : allow contextmanager objects to be used as decorators as described in the docs. Initial patch by Ysj Ray.
2011-05-05 23:49:25 +10:00
Vinay Sajip
e9a56e8d49
Tweaked timed rollover test to allow for test-time delays.
2011-05-05 14:18:33 +01:00
Vinay Sajip
0372e10684
Improved coverage and fixed bug in HTTPHandler with POST requests.
2011-05-05 12:59:14 +01:00
R David Murray
9cc432d937
Merge #8158 : add missing 'description' description to optparse docstring.
2011-05-04 21:08:07 -04:00
R David Murray
3ef4419dc3
Merge #8158 : add missing 'description' description to optparse docstring.
2011-05-04 21:07:33 -04:00
R David Murray
fc5ed800d8
#8158 : add missing 'description' description to optparse docstring.
2011-05-04 21:06:57 -04:00
Daniel Stutzbach
3f064693bb
#11335 : Merge from 3.2: Fix memory leak after key function failure in sort
2011-05-04 12:47:14 -07:00
Daniel Stutzbach
eda70b81d3
#11335 : Fix memory leak after key function failure in sort
2011-05-04 12:46:28 -07:00
Antoine Pitrou
fc20b0c65c
Issue #1856 : Avoid crashes and lockups when daemon threads run while the
...
interpreter is shutting down; instead, these threads are now killed when
they try to take the GIL.
2011-05-04 20:04:29 +02:00
Antoine Pitrou
0d5e52d346
Issue #1856 : Avoid crashes and lockups when daemon threads run while the
...
interpreter is shutting down; instead, these threads are now killed when
they try to take the GIL.
2011-05-04 20:02:30 +02:00
Ezio Melotti
2c173bad9d
#11985 : merge with 3.2.
2011-05-04 18:39:59 +03:00
Ezio Melotti
e548f5a001
#11985 : merge with 3.1.
2011-05-04 18:39:29 +03:00
Ezio Melotti
f16898bc80
#11985 : update docstring of platform.python_implementation.
2011-05-04 18:37:50 +03:00
Victor Stinner
4e86d5b88d
Replace open(filename, 'rU') by open(filename, 'r')
...
The U flag is no more used (but still accepted for backward compatibility).
2011-05-04 13:55:36 +02:00
Victor Stinner
35b300c5fd
Issue #8407 : signal.pthread_sigmask() returns a set instead of a list
...
Update the doc. Refactor also related tests.
2011-05-04 13:20:35 +02:00
Victor Stinner
6fd49e152a
Issue #11998 , issue #8407 : workaround _tkinter issue in test_signal
...
The _tkinter module loads the Tcl library which creates a thread waiting events
in select(). This thread receives signals blocked by all other threads. We
cannot test blocked signals if the _tkinter module is loaded.
2011-05-04 12:38:03 +02:00
Victor Stinner
55b5fa76a7
regrtest: dump all threads on a crash, not only the current thread
2011-05-04 11:02:12 +02:00
Mark Dickinson
5bc7a44477
test_math.py: Use correct signs on zeros for expected fmod results.
2011-05-03 21:13:40 +01:00
Mark Dickinson
0cc28b7a34
Remove an unused import and an unused local definition from test_math.py.
2011-05-03 21:02:51 +01:00
Raymond Hettinger
e7a2430dde
Fix __hash__ in functools.cmp_to_key() to work with collections.Hashable.
2011-05-03 11:16:36 -07:00
Raymond Hettinger
003be52932
Fix __hash__ in functools.cmp_to_key() to work with collections.Hashable.
2011-05-03 11:01:32 -07:00
Victor Stinner
f44ce8748d
Issue #8407 : disable faulthandler timeout thread on all platforms
...
The problem is not specific to Mac OS X.
2011-05-03 17:20:31 +02:00
Antoine Pitrou
441f935228
Fix typo in name of private function
2011-05-03 16:35:43 +02:00
Antoine Pitrou
b87a56a519
Fix typo in name of private function
2011-05-03 16:34:42 +02:00
Victor Stinner
d0e516db50
Issue #8407 : pthread_sigmask() checks immediatly if signal handlers have been
...
called. The test checks that SIG_UNBLOCK calls immediatly the signal handler of
the pending SIGUSR1. Improve also the tests using an exception (division by
zero) instead of a flag (a function attribute).
2011-05-03 14:57:12 +02:00
Victor Stinner
2d4a91e0d0
Issue #8407 : Fix pthread_sigmask() tests on Mac OS X
...
Disable faulthandler timeout thread on Mac OS X: it interacts with
pthread_sigmask() tests.
2011-05-03 14:11:22 +02:00