Georg Brandl
7098685bdb
Fix markup.
2011-04-01 09:19:57 +02:00
Victor Stinner
f309134eff
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
2011-04-01 03:16:51 +02:00
Victor Stinner
a4d4f1b4cb
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.
2011-04-01 03:00:05 +02:00
Victor Stinner
1c76b7f5e5
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.
2011-04-01 02:28:22 +02:00
Raymond Hettinger
d6056b7d8d
Issue #7796 : Add link to Jan Kaliszewski's alternate constructor and ABC for named tuples.
2011-03-31 15:46:39 -07:00
Raymond Hettinger
6c94e6fb42
Issue #7796 : Add link to Jan Kaliszewski's alternate constructor and ABC for named tuples.
2011-03-31 15:46:06 -07:00
Raymond Hettinger
112226f962
Fix markup and wording.
2011-03-31 13:59:52 -07:00
Raymond Hettinger
12e6c256ca
Fix markup and wording.
2011-03-31 13:59:24 -07:00
Victor Stinner
7ad24e9a73
Issue #11393 : test_faulthandler is more tolerant on inaccurate time
2011-03-31 22:35:49 +02:00
Raymond Hettinger
6604662616
Add links to make the math docs more usable.
2011-03-31 12:06:47 -07:00
Raymond Hettinger
1081d48889
Add links to make the math docs more usable.
2011-03-31 12:04:53 -07:00
R David Murray
a46ed1186f
Move assertBytesEqual to base test class, improve it, and hook into assertEqual
2011-03-31 13:11:40 -04:00
Victor Stinner
eb50e51a0f
Issue #11393 : get more information on assertion error (test_faulthandler)
2011-03-31 19:07:58 +02:00
Victor Stinner
7d648a0cec
Issue #11727 : Antoine and Arfrever don't like "0 < timeout" style (regrtest.py)
2011-03-31 18:27:50 +02:00
R David Murray
a256bacf91
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.
2011-03-31 12:20:23 -04:00
Victor Stinner
1940233102
Issue #11393 : check that stdout is empty if we use a file
2011-03-31 18:15:52 +02:00
Victor Stinner
0cc8d59069
Issue #11727 : add --timeout option to regrtest (disabled by default).
2011-03-31 18:10:13 +02:00
Victor Stinner
4b73988122
regrtest.py checks that child process exit code is zero
2011-03-31 18:02:36 +02:00
R David Murray
28346b8077
Only a few files were opened using findfile; consistently don't use it.
2011-03-31 11:40:20 -04:00
Victor Stinner
dd810ddb65
Merge 3.2: sys.getfilesystemencoding() raises a RuntimeError if
...
initfsencoding() was not called yet: detect bootstrap (startup) issues earlier.
2011-03-31 13:40:14 +02:00
Victor Stinner
27181ac778
sys.getfilesystemencoding() raises a RuntimeError if initfsencoding() was not
...
called yet: detect bootstrap (startup) issues earlier.
2011-03-31 13:39:03 +02:00
Victor Stinner
05585cbdc8
Issue #11393 : test_faulthandler checks the exitcode after the output
2011-03-31 13:29:56 +02:00
Victor Stinner
f048075079
Issue #11393 : limit stack overflow test to 100 MB
...
Stop if the stack overflow doesn't occur after allocating 100 MB on the stack.
2011-03-31 11:34:08 +02:00
Victor Stinner
702624ecf7
Issue #11393 : Fix the documentation (cancel_dump_traceback_later)
...
* dump_traceback_later() => dump_tracebacks_later()
* cancel_dump_traceback_later() => cancel_dump_tracebacks_later()
2011-03-31 03:42:34 +02:00
Victor Stinner
3c7c355e67
Issue #11557 : disable test_logging.test_no_kwargs (fail on most buildbots)
2011-03-31 03:22:15 +02:00
Victor Stinner
0862d6ed8f
Issue #11393 : Disable test_stack_overflow of test_faulthandler
2011-03-31 02:05:54 +02:00
Victor Stinner
bb14b37044
Issue #11393 : reenable all tests in regrtest.py (wooops, sorry Antoine)
2011-03-31 01:34:22 +02:00
Victor Stinner
024e37adcc
Issue #11393 : Add the new faulthandler module
2011-03-31 01:31:06 +02:00
Antoine Pitrou
d85456279f
Issue #11618 : Fix the timeout logic in threading.Lock.acquire() under
...
Windows.
2011-03-31 01:03:10 +02:00
Antoine Pitrou
7899acfc23
Issue #11618 : Fix the timeout logic in threading.Lock.acquire() under
...
Windows.
2011-03-31 01:00:32 +02:00
Kristjan Valur Jonsson
8c5b748026
Merge
2011-03-30 11:55:52 +00:00
Kristjan Valur Jonsson
d05595697d
Merge 3.1
2011-03-30 11:54:13 +00:00
Kristjan Valur Jonsson
3c136e19b9
Merge
2011-03-30 11:39:24 +00:00
Kristjan Valur Jonsson
978da33c7a
Merge 3.2
2011-03-30 11:32:06 +00:00
Kristjan Valur Jonsson
fa3edbed25
Merge 3.1
2011-03-30 11:24:58 +00:00
Kristjan Valur Jonsson
35722a9376
Bugfix: Properly test for errors from PyLong_AsLong() in itertools.cycle.
...
ti can raise an exception even if PyLong_Check() has
succeeded.
2011-03-30 11:04:28 +00:00
Raymond Hettinger
010a948489
Issue 11713: clarify docstring for collections.deque()
2011-03-29 17:38:15 -07:00
Raymond Hettinger
4974705a02
Issue 11713: clarify docstring for collections.deque()
2011-03-29 17:36:31 -07:00
Raymond Hettinger
d6c1d57195
Issue 11713: clarify docstring for collections.deque()
2011-03-29 17:30:01 -07:00
Guido van Rossum
3a4ea3d966
Merge issue 11662.
2011-03-29 13:00:28 -07:00
Guido van Rossum
20d2ab435e
Merge issue 11662.
2011-03-29 12:58:29 -07:00
Guido van Rossum
acb63092b7
Merge issue 11662.
2011-03-29 12:55:41 -07:00
guido@google.com
69cfcabae3
Merge.
2011-03-29 12:09:45 -07:00
guido@google.com
2008a8f8c0
Merge Issue 11662 from 3.2 branch.
2011-03-29 12:02:49 -07:00
guido@google.com
c768ff5d4f
Merge Issue 11662 from 3.1 branch.
2011-03-29 11:51:26 -07:00
guido@google.com
a119df91f3
Issue 11662: Fix vulnerability in urllib/urllib2.
...
(This version is a cleaned-up backport of a fix by Senthil Kumaran.)
2011-03-29 11:41:02 -07:00
Vinay Sajip
e6c1eb9267
Closes issue #11557 : Added Natalia Bidart's patch to improve test coverage.
2011-03-29 17:20:34 +01:00
R David Murray
86cc82e36f
Remove the 'strict' argument to Parser, deprecated since 2.4.
2011-03-29 11:32:35 -04:00
R David Murray
1ebdd714ac
Add a __main__.py to test_email so it works with -m like it did before move.
2011-03-29 09:59:45 -04:00
Benjamin Peterson
1df78c8e6e
merge 3.2
2011-03-28 17:42:35 -05:00