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
Raymond Hettinger
a5ac2ce982
Backport 3.3 fixes and cleans ups.
2011-05-02 11:02:13 -07:00
Alexander Belopolsky
4409493d73
Relax %Y test.
2011-05-02 13:48:09 -04:00
Alexander Belopolsky
89da349b7b
Issue #11930 : Remove year >= 1000 limitation from datetime.strftime.
...
Patch by Victor Stinner.
2011-05-02 13:14:24 -04:00
Raymond Hettinger
81b9656989
Backport code cleanup for namedtuples.
2011-05-02 09:50:15 -07:00
Alexander Belopolsky
09a98a99cd
merge
2011-05-02 12:31:17 -04:00
Alexander Belopolsky
03163ac185
Issue #11930 : Remove deprecated time.accept2dyear.
2011-05-02 12:20:52 -04:00
Victor Stinner
59bec36b1c
(Merge 3.2) logging: don't define QueueListener if Python has no thread support
2011-05-02 16:14:16 +02:00
Victor Stinner
cafa2efedb
logging: don't define QueueListener if Python has no thread support
2011-05-02 16:11:28 +02:00
Vinay Sajip
714b8dc501
Improved thread interlocks in tests.
2011-05-02 14:43:00 +01:00
Vinay Sajip
314b92b26e
Updated docstrings.
2011-05-02 14:31:16 +01:00
R David Murray
477a6eb4a2
Merge: I was right, hardconding the localhost IP doesn't work in linux-vserver.
2011-05-02 08:48:00 -04:00
R David Murray
b912c5a004
I was right, hardconding the localhost IP doesn't work in linux-vserver.
2011-05-02 08:47:24 -04:00
Vinay Sajip
7367d08838
Added tests to improve coverage.
2011-05-02 13:17:27 +01:00
Victor Stinner
fadeeffe5b
(Merge 3.2) Issue #11277 : mmap.mmap() calls fcntl(fd, F_FULLFSYNC) on Mac OS X
...
to get around a mmap bug with sparse files. Patch written by Steffen Daode
Nurpmeso.
2011-05-02 01:14:55 +02:00
Victor Stinner
8108e96bc8
(Merge 3.1) Issue #11277 : mmap.mmap() calls fcntl(fd, F_FULLFSYNC) on Mac OS X
...
to get around a mmap bug with sparse files. Patch written by Steffen Daode
Nurpmeso.
2011-05-02 01:11:33 +02:00
Victor Stinner
a6cd0cf0f5
Issue #11277 : mmap calls fcntl(fd, F_FULLFSYNC) on Mac OS X to get around a
...
mmap bug with sparse files. Patch written by Steffen Daode Nurpmeso.
2011-05-02 01:05:37 +02:00
Victor Stinner
6a534e7e7b
(Merge 3.2) 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:33:06 +02:00
Victor Stinner
d9561318d8
(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:31:36 +02:00
Victor Stinner
3249dec024
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:19:15 +02:00
Victor Stinner
571e8fda9b
regrtest: add the name of the failing test on a child error (-j option)
2011-05-01 22:57:43 +02:00
Victor Stinner
c90e19dd3f
Close #11958 : Fix FTP tests for IPv6, bind to "::1" instead of "localhost".
...
Patch written by Charles-Francois Natali.
2011-05-01 01:23:03 +02:00
Ezio Melotti
48006cf1a8
Fix test.
2011-05-01 00:03:49 +03:00
Vinay Sajip
a463d25930
Improved test coverage.
2011-04-30 21:52:48 +01:00
Vinay Sajip
de19e08de4
Updated usage of boolean values.
2011-04-30 21:52:26 +01:00
Vinay Sajip
312cc0d28e
Updated usage of boolean values.
2011-04-30 21:51:51 +01:00
Victor Stinner
a929335961
Issue #8407 , issue #11859 : Add signal.pthread_sigmask() function to fetch
...
and/or change the signal mask of the calling thread.
Fix also tests of test_io using threads and an alarm: use pthread_sigmask() to
ensure that the SIGALRM signal is received by the main thread.
Original patch written by Jean-Paul Calderone.
2011-04-30 15:21:58 +02:00
Victor Stinner
d5c355ccc7
Issue #11223 : Replace threading._info() by sys.thread_info
2011-04-30 14:53:09 +02:00
Senthil Kumaran
4a0afa224c
Wrap the correct test with the skip decorator for the issue10761.
...
merge from 3.2.
2011-04-30 06:12:25 +08:00
Senthil Kumaran
be5dbebeaa
merge from 3.1
2011-04-30 06:09:51 +08:00
Senthil Kumaran
f108f8258e
Wrap the testskip decorator for the proper test to resolve bb failure.
2011-04-30 06:06:28 +08:00
Brian Curtin
5d9deaa9d8
whitespace fix
2011-04-29 16:24:07 -05:00
Brian Curtin
b8f8b4e54b
merge
2011-04-29 16:14:55 -05:00
Brian Curtin
08fd8d93f7
merge
2011-04-29 16:11:30 -05:00
Brian Curtin
8b8e7f467f
Further fix #7838 . CREATE_NEW_CONSOLE was exposed, but none of the
...
constants to be used for STARTUPINFO were exposed due to the change.
2011-04-29 15:48:13 -05:00
Łukasz Langa
82710c594b
Merged minor cleanups from 3.2.
2011-04-29 16:17:51 +02:00
Łukasz Langa
5c7419d433
Removed debugging leftovers.
2011-04-29 16:16:36 +02:00
Łukasz Langa
4d27d9e8b6
__class__ of a __class__ check worked only by chance.
2011-04-29 16:15:41 +02:00
Łukasz Langa
75da860413
TestChainMap was not previously used. Minor corrections applied.
2011-04-29 11:35:03 +02:00
Antoine Pitrou
09db87b633
Merge
2011-04-29 00:49:33 +02:00
Antoine Pitrou
31b89599e9
Add WSANO_DATA to possible errors triggered by getaddrinfo (Windows)
2011-04-29 00:49:03 +02:00
Brian Curtin
f664345981
Implement #11832 . Add an option to start regrtest and wait for input
...
before continuing.
This is useful for starting up the test suite to attach a debugger such
as Visual Studio or others.
2011-04-28 17:45:17 -05:00
Antoine Pitrou
390ea0f25d
Add WSANO_DATA to possible errors triggered by getaddrinfo (Windows)
2011-04-29 00:44:33 +02:00
Antoine Pitrou
5aefa6637c
Fix whitespace
2011-04-28 19:24:46 +02:00
Antoine Pitrou
15399c3f09
Issue #11811 : ssl.get_server_certificate() is now IPv6-compatible. Patch
...
by Charles-François Natali.
2011-04-28 19:23:55 +02:00
Antoine Pitrou
9c39f3c4ec
Issue #11811 : Factor out detection of IPv6 support on the current host
...
and make it available as `test.support.IPV6_ENABLED`. Patch by
Charles-François Natali.
2011-04-28 19:18:10 +02:00
Łukasz Langa
70eb79c669
Merged solution for #11324 from 3.2.
2011-04-28 17:04:25 +02:00
Łukasz Langa
1aa422fe8f
Closes #11324 : ConfigParser(interpolation=None) doesn't work.
...
Initial patches by Tobias Brink. Thanks!
2011-04-28 17:03:45 +02:00
Vinay Sajip
7fe1d51924
Improved test_logging coverage.
2011-04-28 12:04:58 +01:00
Łukasz Langa
e812bf7bf6
Merged styling updates for #11670 from 3.2.
2011-04-28 12:02:58 +02:00
Łukasz Langa
ba702daef9
Style updates for the #11670 solution after post-commit review by Ezio Melotti:
...
http://mail.python.org/pipermail/python-checkins/2011-April/104688.html
Thanks!
2011-04-28 12:02:05 +02:00
Senthil Kumaran
2ea72709a3
merge from 3.2
2011-04-28 17:08:41 +08:00
Senthil Kumaran
c20566cdf8
merge from 3.1
2011-04-28 17:08:12 +08:00
Senthil Kumaran
e3bdcf4ffd
skip the extractall test on platforms where os.symlink is not available.
2011-04-28 17:05:55 +08:00
Łukasz Langa
50c7562da9
Merged solution for #11858 from 3.2.
2011-04-28 11:01:18 +02:00
Łukasz Langa
e698cd54bc
Closes #11858 : configparser.ExtendedInterpolation and section case.
...
Patch by ゆかり ぴんく魔女. Thanks!
2011-04-28 10:58:57 +02:00
Senthil Kumaran
7274828b48
merge from 3.2
2011-04-28 15:53:59 +08:00
Senthil Kumaran
8a410d319a
merge from 3.1
2011-04-28 15:53:09 +08:00
Senthil Kumaran
123932f237
Add tests for tarfile extractall feature when with symlinks
2011-04-28 15:38:12 +08:00
Ezio Melotti
60811c215f
#11926 : merge with 3.2.
2011-04-28 07:55:29 +03:00
Ezio Melotti
44aad855dd
#11926 : merge with 3.1.
2011-04-28 07:51:14 +03:00
Ezio Melotti
b185a04aa1
#11926 : add missing keywords to help("keywords").
2011-04-28 07:42:55 +03:00
Ezio Melotti
3c1d067ef9
#11938 : merge with 3.2.
2011-04-28 01:00:25 +03:00
Ezio Melotti
75cbd73666
#11938 : Fix duplicated test name in test_inspect. Patch by Andreas Stührk.
2011-04-28 00:59:29 +03:00
Łukasz Langa
29050d7317
Merged #11670 from 3.2
2011-04-27 18:11:50 +02:00
Łukasz Langa
daab1c8092
Closes #11670 : configparser read_file now iterates over f.
2011-04-27 18:10:05 +02:00
Éric Araujo
0abb8b74d9
Merge 3.2
2011-04-27 16:32:36 +02:00
Éric Araujo
7fb624fe51
Branch merge
2011-04-27 16:28:50 +02:00
Éric Araujo
944d16c6c4
Merge 3.1
2011-04-27 16:27:38 +02:00
Éric Araujo
19acb88baf
Branch merge
2011-04-27 16:25:27 +02:00
Éric Araujo
9a42793761
Branch merge
2011-04-27 16:23:56 +02:00
Vinay Sajip
6bba65c799
Use correct Unix socket for syslogd on OS X.
2011-04-27 14:31:55 +01:00
Vinay Sajip
dbeb27461c
test_logging: handle syslogd connection failure.
2011-04-27 14:18:06 +01:00
Vinay Sajip
5a35b06d5e
test_logging coverage improvements.
2011-04-27 11:31:14 +01:00
Vinay Sajip
86a96cee23
Re-enabled time test in test_logging.
2011-04-27 08:30:30 +01:00
Ezio Melotti
9490af2150
#11763 : merge with 3.2.
2011-04-27 10:21:51 +03:00
Ezio Melotti
edd117fd27
#11763 : merge with 3.1.
2011-04-27 10:20:38 +03:00
Ezio Melotti
935a588825
#11763 : don't use difflib in TestCase.assertMultiLineEqual if the strings are too long.
2011-04-27 10:17:34 +03:00
Vinay Sajip
d972d8fea2
Disabled test failing on buildbots.
2011-04-26 20:51:07 +01:00
Vinay Sajip
37eb3387a4
Refined time test in test_logging.
2011-04-26 20:26:41 +01:00
Vinay Sajip
373baef1eb
Yet more test_logging coverage improvements.
2011-04-26 20:05:24 +01:00
Vinay Sajip
985ef87ea0
More test_logging coverage improvements.
2011-04-26 19:34:04 +01:00
Vinay Sajip
26fe4b70cf
test_logging coverage improvements.
2011-04-26 18:43:05 +01:00
Senthil Kumaran
75e6ed18d0
merge from 3.1 codeline.
2011-04-26 21:00:27 +08:00
Senthil Kumaran
7cfe5f88ce
Fix for issue11236 getpass.getpass to respond ctrl-c or ctrl-z
2011-04-26 20:59:46 +08:00
Ezio Melotti
bf1253b25a
#6780 : merge with 3.2.
2011-04-26 06:45:24 +03:00
Ezio Melotti
f2b3f780a1
#6780 : merge with 3.1.
2011-04-26 06:40:59 +03:00
Ezio Melotti
ba42fd5801
#6780 : fix starts/endswith error message to mention that tuples are accepted too.
2011-04-26 06:09:45 +03:00
Antoine Pitrou
d4a2ff40d5
Issue #11919 : try to fix test_imp failure on some buildbots.
2011-04-25 21:46:04 +02:00
Antoine Pitrou
11846905d3
Issue #11919 : try to fix test_imp failure on some buildbots.
2011-04-25 21:39:49 +02:00
Antoine Pitrou
eec60603a8
Issue #10914 : Add a minimal embedding test to test_capi.
2011-04-25 21:23:26 +02:00
Antoine Pitrou
8e60577693
Issue #10914 : Add a minimal embedding test to test_capi.
2011-04-25 21:21:07 +02:00
Jesus Cea
88f7841be7
Correctly merging #9319 into 3.3?
2011-04-25 03:46:43 +02:00
Victor Stinner
c2824d41c3
Issue #11915 : threading.RLock()._release_save() raises a RuntimeError if the
...
lock was not acquired.
2011-04-24 23:41:33 +02:00
Raymond Hettinger
a82aa55b5e
Minor clean-ups to docstrings, comments, and var names.
2011-04-24 14:34:26 -07:00
Raymond Hettinger
5db3e0167d
Minor clean-ups to docstrings, comments, and var names.
2011-04-24 14:26:08 -07:00
Éric Araujo
2bad92d310
Remove obsolete/duplicate docstring
2011-04-24 17:10:30 +02:00
Éric Araujo
92952cc181
Merge 3.2
2011-04-24 02:49:10 +02:00
Éric Araujo
0c91e1d941
Branch merge
2011-04-24 02:47:37 +02:00
Éric Araujo
fbeb1a9468
Merge 3.1
2011-04-24 02:42:52 +02:00
Éric Araujo
cae1be85f5
Branch merge
2011-04-24 02:39:43 +02:00
Éric Araujo
5348b63a91
Branch merge
2011-04-24 02:34:11 +02:00
Antoine Pitrou
6803dc28b1
Remove unused private function
2011-04-23 17:56:06 +02:00
Antoine Pitrou
8c52027e2d
Issue #11258 : Speed up ctypes.util.find_library() under Linux by a factor
...
of 5 to 10. Initial patch by Jonas H.
2011-04-23 17:51:04 +02:00
Victor Stinner
7fdd0fe48f
Issue #9319 : Fix the unit test
2011-04-23 01:24:11 +02:00
Victor Stinner
c68b6aaec8
Issue #9319 : Fix a crash on parsing a Python source code without encoding
...
cookie and not valid in UTF-8: use "<file>" as the filename instead of
reading from NULL.
2011-04-23 00:41:19 +02:00
Vinay Sajip
00bdbe1d97
Fixed bug in test_logging.
2011-04-22 00:17:46 +01:00
Éric Araujo
de579d4359
Add a space to make json doc a bit more readable
2011-04-21 02:37:41 +02:00
Raymond Hettinger
4f438b7b00
Minor text rearrangement.
2011-04-20 13:09:46 -07:00
Raymond Hettinger
296d6d0cd6
Minor text rearrangement.
2011-04-20 13:08:40 -07:00
Raymond Hettinger
fc330aeb6f
Minor text rearrangement.
2011-04-20 13:03:49 -07:00
Ezio Melotti
5020e000c5
Merge with 3.2.
2011-04-20 21:59:06 +03:00
Ezio Melotti
af92842bf9
Use non-deprecated method name.
2011-04-20 21:56:21 +03:00
Éric Araujo
ab20b164b9
Merge 3.2
2011-04-20 20:22:57 +02:00
Éric Araujo
37e6c54ba1
Merge 3.1
2011-04-20 19:24:09 +02:00
Éric Araujo
6f205ed37e
Branch merge
2011-04-20 19:23:26 +02:00
Éric Araujo
ad0790e573
Branch merge
2011-04-20 18:54:12 +02:00
Éric Araujo
f8e1b60799
Add docstring to dbm.open
2011-04-20 18:52:55 +02:00
Jesus Cea
c1ceb64e41
MERGE: startswith and endswith don't accept None as slice index. Patch by Torsten Becker. ( closes #11828 )
2011-04-20 17:59:29 +02:00
Jesus Cea
6159ee3cf5
MERGE: startswith and endswith don't accept None as slice index. Patch by Torsten Becker. ( closes #11828 )
2011-04-20 17:42:50 +02:00
Jesus Cea
ac4515063c
startswith and endswith don't accept None as slice index. Patch by Torsten Becker. ( closes #11828 )
2011-04-20 17:09:23 +02:00
Vinay Sajip
5e66b167ff
Tidied comments and docstrings.
2011-04-20 15:41:14 +01:00
Vinay Sajip
5b9eecf8cf
Attempt fix of #11557 by refining test logic.
2011-04-20 12:50:42 +01:00
Vinay Sajip
1e42f9e4c0
Attempt fix of #11557 by refining setup/teardown logic.
2011-04-20 12:20:44 +01:00
Vinay Sajip
95bf50416e
Attempt fix of #11557 by changing setup/teardown logic.
2011-04-20 11:50:56 +01:00
Vinay Sajip
3def7e0f01
Attempt fix of #11557 by changing teardown logic.
2011-04-20 10:58:06 +01:00
Raymond Hettinger
f48ac3001a
Issue #11875 : Alter the previous fix to work better with subclasses
2011-04-19 17:19:11 -07:00
Raymond Hettinger
25458f155a
Issue #11875 : Alter the previous fix to work better with subclasses
2011-04-19 17:17:51 -07:00
Raymond Hettinger
d07eaf177c
Issue #11875 : Alter the previous fix to work better with subclasses
2011-04-19 17:17:23 -07:00
Victor Stinner
2d70e29998
Issue #11223 : fix test_dummy_threading, add _dummy_thread.info()
2011-04-20 00:26:28 +02:00
Victor Stinner
754851f456
Issue #11223 : Add threading._info() function providing informations about the
...
thread implementation.
Skip test_lock_acquire_interruption() and test_rlock_acquire_interruption() of
test_threadsignals if a thread lock is implemented using a POSIX mutex and a
POSIX condition variable. A POSIX condition variable cannot be interrupted by a
signal (e.g. on Linux, the futex system call is restarted).
2011-04-19 23:58:51 +02:00
Raymond Hettinger
111474452d
merge
2011-04-19 11:12:47 -07:00
Raymond Hettinger
1cc986e4a7
Issue 11875: Keep OrderedDict's __reduce__ from temporarily mutating the object.
2011-04-19 11:10:43 -07:00
Raymond Hettinger
98c850a398
Issue 11875: Keep OrderedDict's __reduce__ from temporarily mutating the object.
2011-04-19 11:04:44 -07:00
Raymond Hettinger
019a97c77c
Issue 11875: Keep OrderedDict's __reduce__ from temporarily mutating the object.
2011-04-19 10:21:27 -07:00
Raymond Hettinger
ab69438046
Hmm, __ne__ was missing
2011-04-19 10:05:53 -07:00
Raymond Hettinger
d08a2c2576
Issue 11875: Keep OrderedDict's __reduce__ from temporarily mutating the object.
2011-04-19 10:05:03 -07:00
Nadeem Vawda
d7d01cd80c
Merge test_startfile fix from 3.2.
2011-04-19 01:41:28 +02:00
Nadeem Vawda
cc3f029380
Merge test_startfile fix from 3.1.
2011-04-19 01:40:45 +02:00
Nadeem Vawda
58de6ee871
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:38:47 +02:00
R David Murray
3edd22ac95
#11731 : simplify/enhance parser/generator API by introducing policy objects.
...
This new interface will also allow for future planned enhancements
in control over the parser/generator without requiring any additional
complexity in the parser/generator API.
Patch reviewed by Éric Araujo and Barry Warsaw.
2011-04-18 13:59:37 -04:00
Victor Stinner
ce16be91dc
(Merge 3.2) Issue #11768 : The signal handler of the signal module only calls
...
Py_AddPendingCall() for the first signal to fix a deadlock on reentrant or
parallel calls. PyErr_SetInterrupt() writes also into the wake up file.
2011-04-18 16:30:17 +02:00
R David Murray
f3299989a2
Merge: #11492 : rewrite header folding algorithm. Less code, more passing tests.
2011-04-18 10:11:06 -04:00
R David Murray
01581ee0b7
#11492 : rewrite header folding algorithm. Less code, more passing tests.
2011-04-18 10:04:34 -04:00
Raymond Hettinger
90375bc7c0
Rework multiset methods to use less memory and to make fewer calls to __hash__.
2011-04-17 19:49:29 -07:00
Raymond Hettinger
c15d9e759f
Rework multiset methods to use less memory and to make fewer calls to __hash__.
2011-04-17 19:47:24 -07:00
Raymond Hettinger
2876a8c272
Rework multiset methods to use less memory and to make fewer calls to __hash__.
2011-04-17 19:46:46 -07:00
Éric Araujo
dcb22a3936
Fix resource warning found manually
2011-04-17 14:27:07 +02:00
Antoine Pitrou
cf645db809
Issue #11790 : Fix sporadic failures in test_multiprocessing.WithProcessesTestCondition.
2011-04-16 21:02:38 +02:00
Antoine Pitrou
f25a8de845
Issue #11790 : Fix sporadic failures in test_multiprocessing.WithProcessesTestCondition.
2011-04-16 21:02:01 +02:00
Antoine Pitrou
a4eb194ea6
Merge from 3.2
2011-04-16 18:55:16 +02:00
Antoine Pitrou
ee4293400c
Fix possible "file already exists" error when running the tests in parallel.
...
This is a perfect example of LBYL going wrong: that code could be executed
by several workers in parallel, and os.mkdir() attempted on the same
path by multiple processes.
2011-04-16 18:53:59 +02:00
R David Murray
e2c4cfce54
Merge: Improve message.py test coverage to 100%.
...
coverage.py reports 99% on branch coverage, but that appears to be
a bug or limitation in coverage.py.
2011-04-16 09:21:49 -04:00
R David Murray
a2860e8b51
Improve message.py test coverage to 100%.
...
coverage.py reports 99% on branch coverage, but that appears to be
a bug or limitation in coverage.py.
2011-04-16 09:20:30 -04:00
Éric Araujo
87f3a9aac7
Fix double use of f.close().
...
The other one is in a finally block not seen in the diff, which I added
in 3bf86785cd9c (for #10252 ).
2011-04-16 00:13:39 +02:00
Éric Araujo
2a83cc61d6
Add missing types to docstring of ast.literal_eval.
...
The reST doc was updated but not the docstring.
2011-04-17 19:10:27 +02:00
Éric Araujo
e7d36fe0a6
Prevent deprecation warning
2011-04-17 16:48:52 +02:00
Vinay Sajip
cd5a2bd48e
Issue #11852 : Merge fix from 3.2.
2011-04-15 22:29:15 +01:00
Vinay Sajip
e723e96103
Issue #11852 : Add missing imports and update tests.
2011-04-15 22:27:17 +01:00
Raymond Hettinger
b5a40d4d3f
Fix minor subclassing issue with collections.Counter
2011-04-15 13:23:01 -07:00
Raymond Hettinger
6c9e5b779f
Fix minor subclassing issue with collections.Counter
2011-04-15 13:21:30 -07:00
Raymond Hettinger
1c746c28f3
Fix minor subclassing issue with collections.Counter
2011-04-15 13:16:46 -07:00
R David Murray
8437fe2708
Remove unused method from internal class.
2011-04-15 14:55:04 -04:00
Ezio Melotti
e1adeeb7fd
#5057 : Merge with 3.2.
2011-04-15 16:52:35 +03:00
Ezio Melotti
71e84a6e27
#5057 : Merge with 3.1.
2011-04-15 16:50:41 +03:00
Ezio Melotti
2df6a93916
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. "\U00012345"[0]).
2011-04-15 16:38:34 +03:00
Senthil Kumaran
b496159603
merge from 3.2
2011-04-15 18:22:05 +08:00
Senthil Kumaran
b4bd4af8c4
merge from 3.1
2011-04-15 18:21:26 +08:00
Senthil Kumaran
397eb4411a
Issue #11467 : Fix urlparse behavior when handling urls which contains scheme specific part only digits.
2011-04-15 18:20:24 +08:00
Ezio Melotti
0dea6484a0
#11848 : Merge with 3.2.
2011-04-15 08:27:37 +03:00
Ezio Melotti
82b0d5d144
#11848 : Merge with 3.1.
2011-04-15 08:27:00 +03:00
Ezio Melotti
20f53f1fe7
#11848 : replace dead link in random.betavariate comment.
2011-04-15 08:25:16 +03:00
Ezio Melotti
a15f614a0c
#11845 : Merge with 3.2.
2011-04-15 08:19:32 +03:00
Ezio Melotti
982ef4e0bc
#11845 : Fix typo in rangeobject.c that caused a crash in compute_slice_indices. Patch by Daniel Urban.
2011-04-15 08:15:40 +03:00
Senthil Kumaran
99e97f92c6
merge from 3.2.
...
Fix closes Issue1147.
2011-04-14 13:20:41 +08:00
Senthil Kumaran
56f1e2d875
merge from 3.1
2011-04-14 13:18:55 +08:00
Senthil Kumaran
2d2ea1b431
Fix Issue11474 - fix url2pathname() handling of '/C|/' on Windows
2011-04-14 13:16:30 +08:00
Éric Araujo
691840f218
Fix improper tests in RegisterTestCase
2011-04-14 03:49:19 +02:00
Éric Araujo
395ba35a92
Minor tweaks to a few comments in heapq
2011-04-15 23:34:31 +02:00
R David Murray
b35c850a3f
#11684 : Complete parser bytes interface by adding BytesHeaderParser
...
Patch by Steffen Daode Nurpmeso.
2011-04-13 16:46:05 -04:00
Raymond Hettinger
f400ab40e4
merge
2011-04-13 11:50:34 -07:00
Raymond Hettinger
8a9c4d9866
Issue 3051: make pure python code pass the same tests as the C version.
2011-04-13 11:49:57 -07:00
Nadeem Vawda
5b5ee69e07
Remove dead code in gzip.
...
These functions appear to be holdovers from the 2.x code, intended to handle
problems with CRC signedness.
2011-04-13 18:57:40 +02:00
Ezio Melotti
5e610def7d
Merge with 3.2.
2011-04-13 16:45:00 +03:00
Ezio Melotti
a3d0be456c
Merge with 3.1.
2011-04-13 16:44:18 +03:00
Ezio Melotti
ce073cdac7
Fix typo in docstring.
2011-04-13 16:43:21 +03:00
Ezio Melotti
7d01e78c9e
Merge with 3.2.
2011-04-13 07:21:24 +03:00
Ezio Melotti
04c6423fba
Merge with 3.1.
2011-04-13 07:18:24 +03:00
Ezio Melotti
d210aa1ad9
#9233 : Fix json.loads({}) to return a dict (instead of a list), when _json is not available.
2011-04-13 07:10:13 +03:00
Ezio Melotti
42368f9b0c
Remove unnecessary imports and use assertIs instead of assertTrue.
2011-04-13 07:08:17 +03:00
Ezio Melotti
c753305180
#9233 : Fix json to work properly even when _json is not available.
2011-04-13 07:04:18 +03:00
Ezio Melotti
4f95a52fe2
#9233 : skip _json-specific tests when _json is not available.
2011-04-13 06:58:29 +03:00
Alexander Belopolsky
b5eacc2928
Merge
2011-04-12 23:08:14 -04:00
Alexander Belopolsky
1a20c121ef
Issue #11830 : Remove unnecessary introspection code in the decimal module.
...
Forward ported changesets b4b1f557d563 and f4adc2926bf5 by Raymond
Hettinger in branch '2.7'.
2011-04-12 23:03:39 -04:00
Raymond Hettinger
ec78bc8e05
Merge
2011-04-12 18:58:40 -07:00
Raymond Hettinger
2df393cc51
Fix nit.
2011-04-12 18:57:55 -07:00
Raymond Hettinger
820ae36b8d
Issue 11718: Teach IDLE's open module dialog to find packages.
2011-04-12 18:30:58 -07:00
Raymond Hettinger
f6445e8f41
Issue 11718: Teach IDLE's open module dialog to find packages.
2011-04-12 18:30:14 -07:00
R David Murray
d16ee63df2
Merge #10019 : Fix regression relative to 2.6: add newlines if indent=0
...
Patch by Amaury Forgeot d'Arc, updated by Sando Tosi.
2011-04-12 21:19:20 -04:00
R David Murray
d5315482e9
Merge #10019 : Fix regression relative to 2.6: add newlines if indent=0
...
Patch by Amaury Forgeot d'Arc, updated by Sando Tosi.
2011-04-12 21:09:18 -04:00
R David Murray
3dd02d62c9
#10019 : Fix regression relative to 2.6: add newlines if indent=0
...
Patch by Amaury Forgeot d'Arc, updated by Sando Tosi.
2011-04-12 21:02:45 -04:00