]> granicus.if.org Git - python/log
python
14 years agoIssue #11727, issue #11753, issue #11755: disable regrtest timeout
Victor Stinner [Sun, 3 Apr 2011 21:46:42 +0000 (23:46 +0200)]
Issue #11727, issue #11753, issue #11755: disable regrtest timeout

Disable regrtest timeout until #11753 and #11755 are fixed

14 years agotest_faulthandler: improve the test on dump_tracebacks_later(cancel=True)
Victor Stinner [Sun, 3 Apr 2011 16:45:42 +0000 (18:45 +0200)]
test_faulthandler: improve the test on dump_tracebacks_later(cancel=True)

14 years agotest_faulthandler: fix regex on the check_dump_traceback_threads() traceback
Victor Stinner [Sun, 3 Apr 2011 16:41:22 +0000 (18:41 +0200)]
test_faulthandler: fix regex on the check_dump_traceback_threads() traceback

The traceback may contain "_is_owned":

Thread 0x40962b90:
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/threading.py", line 220 in _is_owned
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/threading.py", line 227 in wait
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/threading.py", line 421 in wait
  File "<string>", line 23 in run
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/threading.py", line 735 in _bootstrap_inner
  File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/threading.py", line 708 in _bootstrap

Current thread XXX:
  File "<string>", line 10 in dump
  File "<string>", line 28 in <module>

14 years agoIssue #11748: try to fix sporadic failures in test_ftplib
Antoine Pitrou [Sun, 3 Apr 2011 16:29:45 +0000 (18:29 +0200)]
Issue #11748: try to fix sporadic failures in test_ftplib

14 years agoMerge fix for issue #11746
Antoine Pitrou [Sun, 3 Apr 2011 16:16:50 +0000 (18:16 +0200)]
Merge fix for issue #11746

14 years agoIssue #11746: Fix SSLContext.load_cert_chain() to accept elliptic curve private keys.
Antoine Pitrou [Sun, 3 Apr 2011 16:15:34 +0000 (18:15 +0200)]
Issue #11746: Fix SSLContext.load_cert_chain() to accept elliptic curve private keys.

14 years agoFix whitespace
Antoine Pitrou [Sun, 3 Apr 2011 15:08:49 +0000 (17:08 +0200)]
Fix whitespace

14 years agoIssue #5863: Rewrite BZ2File in pure Python, and allow it to accept
Antoine Pitrou [Sun, 3 Apr 2011 15:05:46 +0000 (17:05 +0200)]
Issue #5863: Rewrite BZ2File in pure Python, and allow it to accept
file-like objects using a new `fileobj` constructor argument.  Patch by
Nadeem Vawda.

14 years ago#11282: add back the fail* methods and assertDictContainsSubset.
Ezio Melotti [Sun, 3 Apr 2011 15:02:13 +0000 (18:02 +0300)]
#11282: add back the fail* methods and assertDictContainsSubset.

14 years ago#11282: merge with 3.2.
Ezio Melotti [Sun, 3 Apr 2011 14:39:19 +0000 (17:39 +0300)]
#11282: merge with 3.2.

14 years ago#11282: the fail* methods will stay around a few more versions.
Ezio Melotti [Sun, 3 Apr 2011 14:37:58 +0000 (17:37 +0300)]
#11282: the fail* methods will stay around a few more versions.

14 years agoMerge with 3.2
Ezio Melotti [Sun, 3 Apr 2011 13:25:49 +0000 (16:25 +0300)]
Merge with 3.2

14 years agoMerge with 3.1
Ezio Melotti [Sun, 3 Apr 2011 13:24:22 +0000 (16:24 +0300)]
Merge with 3.1

14 years agoFix typo noticed by Sandro Tosi.
Ezio Melotti [Sun, 3 Apr 2011 13:20:21 +0000 (16:20 +0300)]
Fix typo noticed by Sandro Tosi.

14 years agoIssue #11727: set regrtest default timeout to 30 minutes
Victor Stinner [Fri, 1 Apr 2011 16:16:36 +0000 (18:16 +0200)]
Issue #11727: set regrtest default timeout to 30 minutes

14 years agoIssue #11727: set regrtest default timeout to 15 minutes
Victor Stinner [Fri, 1 Apr 2011 13:59:59 +0000 (15:59 +0200)]
Issue #11727: set regrtest default timeout to 15 minutes

14 years agoIssue #11393: signal of user signal displays tracebacks even if tstate==NULL
Victor Stinner [Fri, 1 Apr 2011 13:37:12 +0000 (15:37 +0200)]
Issue #11393: signal of user signal displays tracebacks even if tstate==NULL

 * faulthandler_user() displays the tracebacks of all threads even if it is
   unable to get the state of the current thread
 * test_faulthandler: only release the GIL in test_gil_released() check
 * create check_signum() subfunction

14 years agoIssue #11393: _Py_DumpTraceback() writes the header even if there is no frame
Victor Stinner [Fri, 1 Apr 2011 13:34:01 +0000 (15:34 +0200)]
Issue #11393: _Py_DumpTraceback() writes the header even if there is no frame

14 years agoIssue #11393: Fix faulthandler.disable() and add a test
Victor Stinner [Fri, 1 Apr 2011 10:56:17 +0000 (12:56 +0200)]
Issue #11393: Fix faulthandler.disable() and add a test

14 years agoIssue #11393: The fault handler handles also SIGABRT
Victor Stinner [Fri, 1 Apr 2011 10:13:55 +0000 (12:13 +0200)]
Issue #11393: The fault handler handles also SIGABRT

14 years agoIssue #11393: fault handler uses raise(signum) for SIGILL on Windows
Victor Stinner [Fri, 1 Apr 2011 10:08:57 +0000 (12:08 +0200)]
Issue #11393: fault handler uses raise(signum) for SIGILL on Windows

14 years agoFix markup.
Georg Brandl [Fri, 1 Apr 2011 07:19:57 +0000 (09:19 +0200)]
Fix markup.

14 years agoIssue #11393: fix usage of locks in faulthandler
Victor Stinner [Fri, 1 Apr 2011 01:16:51 +0000 (03:16 +0200)]
Issue #11393: fix usage of locks in faulthandler

 * faulthandler_cancel_dump_tracebacks_later() is responsible to set running
   to zero (so we don't need the volatile keyword anymore)
 * release locks if PyThread_start_new_thread() fails

assert(thread.running == 0) was wrong in a corner case

14 years agoIssue #11393: New try to fix faulthandler_thread()
Victor Stinner [Fri, 1 Apr 2011 01:00:05 +0000 (03:00 +0200)]
Issue #11393: New try to fix faulthandler_thread()

Always release the cancel join.

Fix also another corner case: _PyFaulthandler_Fini() called after setting
running variable to zero, but before releasing the join lock.

14 years agoIssue #11393: Fix faulthandler_thread(): release cancel lock before join lock
Victor Stinner [Fri, 1 Apr 2011 00:28:22 +0000 (02:28 +0200)]
Issue #11393: Fix faulthandler_thread(): release cancel lock before join lock

If the thread releases the join lock before the cancel lock, the thread may
sometimes still be alive at cancel_dump_tracebacks_later() exit. So the cancel
lock may be destroyed while the thread is still alive, whereas the thread will
try to release the cancel lock, which just crash.

Another minor fix: the thread doesn't release the cancel lock if it didn't
acquire it.

14 years agoIssue #7796: Add link to Jan Kaliszewski's alternate constructor and ABC for named...
Raymond Hettinger [Thu, 31 Mar 2011 22:46:39 +0000 (15:46 -0700)]
Issue #7796: Add link to Jan Kaliszewski's alternate constructor and ABC for named tuples.

14 years agoIssue #7796: Add link to Jan Kaliszewski's alternate constructor and ABC for named...
Raymond Hettinger [Thu, 31 Mar 2011 22:46:06 +0000 (15:46 -0700)]
Issue #7796: Add link to Jan Kaliszewski's alternate constructor and ABC for named tuples.

14 years agoFix markup and wording.
Raymond Hettinger [Thu, 31 Mar 2011 20:59:52 +0000 (13:59 -0700)]
Fix markup and wording.

14 years agoFix markup and wording.
Raymond Hettinger [Thu, 31 Mar 2011 20:59:24 +0000 (13:59 -0700)]
Fix markup and wording.

14 years agoIssue #11393: test_faulthandler is more tolerant on inaccurate time
Victor Stinner [Thu, 31 Mar 2011 20:35:49 +0000 (22:35 +0200)]
Issue #11393: test_faulthandler is more tolerant on inaccurate time

14 years agoAdd links to make the math docs more usable.
Raymond Hettinger [Thu, 31 Mar 2011 19:06:47 +0000 (12:06 -0700)]
Add links to make the math docs more usable.

14 years agoAdd links to make the math docs more usable.
Raymond Hettinger [Thu, 31 Mar 2011 19:04:53 +0000 (12:04 -0700)]
Add links to make the math docs more usable.

14 years agoMove assertBytesEqual to base test class, improve it, and hook into assertEqual
R David Murray [Thu, 31 Mar 2011 17:11:40 +0000 (13:11 -0400)]
Move assertBytesEqual to base test class, improve it, and hook into assertEqual

14 years agoIssue #11393: get more information on assertion error (test_faulthandler)
Victor Stinner [Thu, 31 Mar 2011 17:07:58 +0000 (19:07 +0200)]
Issue #11393: get more information on assertion error (test_faulthandler)

14 years agoIssue #11727: Antoine and Arfrever don't like "0 < timeout" style (regrtest.py)
Victor Stinner [Thu, 31 Mar 2011 16:27:50 +0000 (18:27 +0200)]
Issue #11727: Antoine and Arfrever don't like "0 < timeout" style (regrtest.py)

14 years agoMove infrastructure into __init__ to lay groundwork for splitting test_email.
R David Murray [Thu, 31 Mar 2011 16:20:23 +0000 (12:20 -0400)]
Move infrastructure into __init__ to lay groundwork for splitting test_email.

The split probably won't happen for a while, but I might as well lay the
groundwork now since I'll be adding new test modules before too long.

14 years agoIssue #11393: check that stdout is empty if we use a file
Victor Stinner [Thu, 31 Mar 2011 16:15:52 +0000 (18:15 +0200)]
Issue #11393: check that stdout is empty if we use a file

14 years agoIssue #11727: add --timeout option to regrtest (disabled by default).
Victor Stinner [Thu, 31 Mar 2011 16:10:13 +0000 (18:10 +0200)]
Issue #11727: add --timeout option to regrtest (disabled by default).

14 years agoregrtest.py checks that child process exit code is zero
Victor Stinner [Thu, 31 Mar 2011 16:02:36 +0000 (18:02 +0200)]
regrtest.py checks that child process exit code is zero

14 years agoOnly a few files were opened using findfile; consistently don't use it.
R David Murray [Thu, 31 Mar 2011 15:40:20 +0000 (11:40 -0400)]
Only a few files were opened using findfile; consistently don't use it.

14 years agoMerge 3.2: sys.getfilesystemencoding() raises a RuntimeError if
Victor Stinner [Thu, 31 Mar 2011 11:40:14 +0000 (13:40 +0200)]
Merge 3.2: sys.getfilesystemencoding() raises a RuntimeError if
initfsencoding() was not called yet: detect bootstrap (startup) issues earlier.

14 years agosys.getfilesystemencoding() raises a RuntimeError if initfsencoding() was not
Victor Stinner [Thu, 31 Mar 2011 11:39:03 +0000 (13:39 +0200)]
sys.getfilesystemencoding() raises a RuntimeError if initfsencoding() was not
called yet: detect bootstrap (startup) issues earlier.

14 years agoIssue #11393: test_faulthandler checks the exitcode after the output
Victor Stinner [Thu, 31 Mar 2011 11:29:56 +0000 (13:29 +0200)]
Issue #11393: test_faulthandler checks the exitcode after the output

14 years agoIssue #11393: limit stack overflow test to 100 MB
Victor Stinner [Thu, 31 Mar 2011 09:34:08 +0000 (11:34 +0200)]
Issue #11393: limit stack overflow test to 100 MB

Stop if the stack overflow doesn't occur after allocating 100 MB on the stack.

14 years agoIssue #11393: Fix the documentation (cancel_dump_traceback_later)
Victor Stinner [Thu, 31 Mar 2011 01:42:34 +0000 (03:42 +0200)]
Issue #11393: Fix the documentation (cancel_dump_traceback_later)

 * dump_traceback_later() => dump_tracebacks_later()
 * cancel_dump_traceback_later() => cancel_dump_tracebacks_later()

14 years agoIssue #11557: disable test_logging.test_no_kwargs (fail on most buildbots)
Victor Stinner [Thu, 31 Mar 2011 01:22:15 +0000 (03:22 +0200)]
Issue #11557: disable test_logging.test_no_kwargs (fail on most buildbots)

14 years agoIssue #11393: Disable test_stack_overflow of test_faulthandler
Victor Stinner [Thu, 31 Mar 2011 00:05:54 +0000 (02:05 +0200)]
Issue #11393: Disable test_stack_overflow of test_faulthandler

14 years agoIssue #11393: reenable all tests in regrtest.py (wooops, sorry Antoine)
Victor Stinner [Wed, 30 Mar 2011 23:34:22 +0000 (01:34 +0200)]
Issue #11393: reenable all tests in regrtest.py (wooops, sorry Antoine)

14 years agoIssue #11393: Add the new faulthandler module
Victor Stinner [Wed, 30 Mar 2011 23:31:06 +0000 (01:31 +0200)]
Issue #11393: Add the new faulthandler module

14 years agoIssue #11618: Fix the timeout logic in threading.Lock.acquire() under
Antoine Pitrou [Wed, 30 Mar 2011 23:03:10 +0000 (01:03 +0200)]
Issue #11618: Fix the timeout logic in threading.Lock.acquire() under
Windows.

14 years agoIssue #11618: Fix the timeout logic in threading.Lock.acquire() under
Antoine Pitrou [Wed, 30 Mar 2011 23:00:32 +0000 (01:00 +0200)]
Issue #11618: Fix the timeout logic in threading.Lock.acquire() under
Windows.

14 years agoMerge
Kristjan Valur Jonsson [Wed, 30 Mar 2011 11:55:52 +0000 (11:55 +0000)]
Merge

14 years agoMerge 3.1
Kristjan Valur Jonsson [Wed, 30 Mar 2011 11:54:13 +0000 (11:54 +0000)]
Merge 3.1

14 years agoMerge
Kristjan Valur Jonsson [Wed, 30 Mar 2011 11:39:24 +0000 (11:39 +0000)]
Merge

14 years agoMerge 3.2
Kristjan Valur Jonsson [Wed, 30 Mar 2011 11:32:06 +0000 (11:32 +0000)]
Merge 3.2

14 years agoMerge 3.1
Kristjan Valur Jonsson [Wed, 30 Mar 2011 11:24:58 +0000 (11:24 +0000)]
Merge 3.1

14 years agoBugfix: Properly test for errors from PyLong_AsLong() in itertools.cycle.
Kristjan Valur Jonsson [Wed, 30 Mar 2011 11:04:28 +0000 (11:04 +0000)]
Bugfix: Properly test for errors from PyLong_AsLong() in itertools.cycle.
ti can raise an exception even if PyLong_Check() has
succeeded.

14 years agoIssue 11713: clarify docstring for collections.deque()
Raymond Hettinger [Wed, 30 Mar 2011 00:38:15 +0000 (17:38 -0700)]
Issue 11713: clarify docstring for collections.deque()

14 years agoIssue 11713: clarify docstring for collections.deque()
Raymond Hettinger [Wed, 30 Mar 2011 00:36:31 +0000 (17:36 -0700)]
Issue 11713: clarify docstring for collections.deque()

14 years agoIssue 11713: clarify docstring for collections.deque()
Raymond Hettinger [Wed, 30 Mar 2011 00:30:01 +0000 (17:30 -0700)]
Issue 11713: clarify docstring for collections.deque()

14 years agoMerge issue 11662.
Guido van Rossum [Tue, 29 Mar 2011 20:00:28 +0000 (13:00 -0700)]
Merge issue 11662.

14 years agoMerge issue 11662.
Guido van Rossum [Tue, 29 Mar 2011 19:58:29 +0000 (12:58 -0700)]
Merge issue 11662.

14 years agoMerge issue 11662.
Guido van Rossum [Tue, 29 Mar 2011 19:55:41 +0000 (12:55 -0700)]
Merge issue 11662.

14 years agoMerge.
guido@google.com [Tue, 29 Mar 2011 19:09:45 +0000 (12:09 -0700)]
Merge.

14 years agoMerge Issue 11662 from 3.2 branch.
guido@google.com [Tue, 29 Mar 2011 19:02:49 +0000 (12:02 -0700)]
Merge Issue 11662 from 3.2 branch.

14 years agoMerge Issue 11662 from 3.1 branch.
guido@google.com [Tue, 29 Mar 2011 18:51:26 +0000 (11:51 -0700)]
Merge Issue 11662 from 3.1 branch.

14 years agoIssue 11662: Fix vulnerability in urllib/urllib2.
guido@google.com [Tue, 29 Mar 2011 18:41:02 +0000 (11:41 -0700)]
Issue 11662: Fix vulnerability in urllib/urllib2.
(This version is a cleaned-up backport of a fix by Senthil Kumaran.)

14 years agoCloses issue #11557: Added Natalia Bidart's patch to improve test coverage.
Vinay Sajip [Tue, 29 Mar 2011 16:20:34 +0000 (17:20 +0100)]
Closes issue #11557: Added Natalia Bidart's patch to improve test coverage.

14 years agoRemove the 'strict' argument to Parser, deprecated since 2.4.
R David Murray [Tue, 29 Mar 2011 15:32:35 +0000 (11:32 -0400)]
Remove the 'strict' argument to Parser, deprecated since 2.4.

14 years agoAdd a __main__.py to test_email so it works with -m like it did before move.
R David Murray [Tue, 29 Mar 2011 13:59:45 +0000 (09:59 -0400)]
Add a __main__.py to test_email so it works with -m like it did before move.

14 years agomerge 3.2
Benjamin Peterson [Mon, 28 Mar 2011 22:42:35 +0000 (17:42 -0500)]
merge 3.2

14 years agoCorrect handling of functions with only kwarg args in getcallargs (closes #11256)
Benjamin Peterson [Mon, 28 Mar 2011 22:32:31 +0000 (17:32 -0500)]
Correct handling of functions with only kwarg args in getcallargs (closes #11256)

A patch from Daniel Urban.

14 years agomerge 3.2
Benjamin Peterson [Mon, 28 Mar 2011 22:26:04 +0000 (17:26 -0500)]
merge 3.2

14 years agomerge 3.1
Benjamin Peterson [Mon, 28 Mar 2011 22:25:50 +0000 (17:25 -0500)]
merge 3.1

14 years agolet's keep parenthesis around sizeof
Benjamin Peterson [Mon, 28 Mar 2011 22:25:15 +0000 (17:25 -0500)]
let's keep parenthesis around sizeof

14 years ago#10617: merge with 3.2.
Ezio Melotti [Mon, 28 Mar 2011 16:27:09 +0000 (19:27 +0300)]
#10617: merge with 3.2.

14 years ago#10617: merge with 3.1.
Ezio Melotti [Mon, 28 Mar 2011 10:53:40 +0000 (13:53 +0300)]
#10617: merge with 3.1.

14 years ago#10617: add class directives to collections ABCs.
Ezio Melotti [Mon, 28 Mar 2011 10:50:41 +0000 (13:50 +0300)]
#10617: add class directives to collections ABCs.

14 years agoUpdate docstrings for itertools.accumulate().
Raymond Hettinger [Mon, 28 Mar 2011 01:59:51 +0000 (18:59 -0700)]
Update docstrings for itertools.accumulate().

14 years agoAdd optional *func* argument to itertools.accumulate().
Raymond Hettinger [Mon, 28 Mar 2011 01:52:10 +0000 (18:52 -0700)]
Add optional *func* argument to itertools.accumulate().

14 years agomerge #11696
Martin v. Löwis [Sun, 27 Mar 2011 19:09:00 +0000 (21:09 +0200)]
merge #11696

14 years agomerge #11696
Martin v. Löwis [Sun, 27 Mar 2011 19:07:13 +0000 (21:07 +0200)]
merge #11696

14 years agoCloses #11696: Fix ID generation in msilib.
Martin v. Löwis [Sun, 27 Mar 2011 19:05:51 +0000 (21:05 +0200)]
Closes #11696: Fix ID generation in msilib.
Patch by Mark Mc Mahon.

14 years agomerge
Mark Dickinson [Sun, 27 Mar 2011 15:39:53 +0000 (16:39 +0100)]
merge

14 years agoIssue #11692: Remove unnecessary demo functions in subprocess module.
Ross Lagerwall [Sun, 27 Mar 2011 15:34:22 +0000 (17:34 +0200)]
Issue #11692: Remove unnecessary demo functions in subprocess module.

14 years agoMerge #9696
Mark Dickinson [Sun, 27 Mar 2011 15:30:50 +0000 (16:30 +0100)]
Merge #9696

14 years agoMerge #9696
Mark Dickinson [Sun, 27 Mar 2011 15:30:07 +0000 (16:30 +0100)]
Merge #9696

14 years agoIssue #9696: Fix exception incorrectly raised by xdrlib.Packer.pack_int when trying...
Mark Dickinson [Sun, 27 Mar 2011 15:25:40 +0000 (16:25 +0100)]
Issue #9696: Fix exception incorrectly raised by xdrlib.Packer.pack_int when trying to pack a negative (in-range) integer.

14 years agoFix misplaced Misc/NEWS entry (merge from 3.2)
Mark Dickinson [Sun, 27 Mar 2011 14:52:03 +0000 (15:52 +0100)]
Fix misplaced Misc/NEWS entry (merge from 3.2)

14 years agoMove misplaced Misc/NEWS item (merge from 3.1)
Mark Dickinson [Sun, 27 Mar 2011 14:50:04 +0000 (15:50 +0100)]
Move misplaced Misc/NEWS item (merge from 3.1)

14 years agoFix misplaced Misc/NEWS entry.
Mark Dickinson [Sun, 27 Mar 2011 14:46:32 +0000 (15:46 +0100)]
Fix misplaced Misc/NEWS entry.

14 years agoIssue #9026: Fix order of argparse sub-commands in help messages. (Merged from 3.2.)
Steven Bethard [Sun, 27 Mar 2011 12:04:03 +0000 (14:04 +0200)]
Issue #9026: Fix order of argparse sub-commands in help messages. (Merged from 3.2.)

14 years agoIssue #9026: Fix order of argparse sub-commands in help messages.
Steven Bethard [Sun, 27 Mar 2011 11:53:53 +0000 (13:53 +0200)]
Issue #9026: Fix order of argparse sub-commands in help messages.

14 years agomerge #7639
Martin v. Löwis [Sun, 27 Mar 2011 08:15:57 +0000 (10:15 +0200)]
merge #7639

14 years agomerge #7639
Martin v. Löwis [Sun, 27 Mar 2011 08:14:57 +0000 (10:14 +0200)]
merge #7639

14 years agoFix short file name generation in bdist_msi.
Martin v. Löwis [Sun, 27 Mar 2011 08:12:07 +0000 (10:12 +0200)]
Fix short file name generation in bdist_msi.
Patch by Christoph Gohlke.
Closes #7639.

14 years agomerge 3.2
Benjamin Peterson [Sat, 26 Mar 2011 23:18:09 +0000 (18:18 -0500)]
merge 3.2

14 years agomerge 3.1
Benjamin Peterson [Sat, 26 Mar 2011 23:17:05 +0000 (18:17 -0500)]
merge 3.1

14 years agorevert unintended changes
Benjamin Peterson [Sat, 26 Mar 2011 23:11:54 +0000 (18:11 -0500)]
revert unintended changes

14 years agoalways check return value of PyObject_IsInstance for error
Benjamin Peterson [Sat, 26 Mar 2011 23:04:09 +0000 (18:04 -0500)]
always check return value of PyObject_IsInstance for error