Victor Stinner
eb39199f3d
(Merge 3.4) asyncio, Tulip issue 137: In debug mode, save traceback where
...
Future, Task and Handle objects are created. Pass the traceback to
call_exception_handler() in the 'source_traceback' key.
The traceback is truncated to hide internal calls in asyncio, show only the
traceback from user code.
Add tests for the new source_traceback, and a test for the 'Future/Task
exception was never retrieved' log.
2014-06-27 13:55:28 +02:00
Victor Stinner
80f53aa9a0
asyncio, Tulip issue 137: In debug mode, save traceback where Future, Task and
...
Handle objects are created. Pass the traceback to call_exception_handler() in
the 'source_traceback' key.
The traceback is truncated to hide internal calls in asyncio, show only the
traceback from user code.
Add tests for the new source_traceback, and a test for the 'Future/Task
exception was never retrieved' log.
2014-06-27 13:52:20 +02:00
Victor Stinner
fe4a979099
(Merge 3.4) asyncio, Tulip issue 137: In debug mode, add the traceback where
...
the coroutine object was created to the "coroutine ... was never yield from"
log
2014-06-27 12:29:30 +02:00
Victor Stinner
bbd96c6f47
asyncio, Tulip issue 137: In debug mode, add the traceback where the coroutine
...
object was created to the "coroutine ... was never yield from" log
2014-06-27 12:28:41 +02:00
Victor Stinner
19b011109d
(Merge 3.4) asyncio: Oops, restore a removed test
2014-06-27 12:24:14 +02:00
Victor Stinner
c4cca45baf
asyncio: Oops, restore a removed test
2014-06-27 12:23:41 +02:00
R David Murray
0c43ed8716
Merge #21476 : Unwrap fp in BytesParser so the file isn't unexpectedly closed.
2014-06-26 13:33:05 -04:00
R David Murray
c6772c4d59
#21476 : Unwrap fp in BytesParser so the file isn't unexpectedly closed.
...
This makes the behavior match that of Parser. Patch by Vajrasky Kok.
2014-06-26 13:31:43 -04:00
R David Murray
2f60820f4c
#20295 : Teach imghdr to recognize OpenEXR format images.
...
Patch by Martin Vignali, test by Claudiu Popa.
2014-06-26 12:27:57 -04:00
Victor Stinner
f5434f73d7
(Merge 3.4) Issue #21163 : Fix one more "Task was destroyed but it is pending!"
...
log in tests
2014-06-25 23:59:31 +02:00
Victor Stinner
72502c12a7
Issue #21163 : Fix one more "Task was destroyed but it is pending!" log in tests
2014-06-25 23:57:50 +02:00
Victor Stinner
86ceffc3ef
(Merge 3.4) asyncio: sync with Tulip
...
- Python issue 21163: Fix more "Task was destroyed but it is pending!" logs in
tests
- Add test to check that run_until_complete() checks the loop of the future
2014-06-25 23:33:02 +02:00
Victor Stinner
7ba4061098
asyncio: sync with Tulip
...
- Python issue 21163: Fix more "Task was destroyed but it is pending!" logs in
tests
- Add test to check that run_until_complete() checks the loop of the future
2014-06-25 23:32:25 +02:00
Victor Stinner
16b3c99141
(Merge 3.4) Issue #21163 , asyncio: Fix some "Task was destroyed but it is
...
pending!" logs in tests
2014-06-25 23:12:58 +02:00
Victor Stinner
87f16f892c
Issue #21163 , asyncio: Fix some "Task was destroyed but it is pending!" logs in tests
2014-06-25 23:11:21 +02:00
Ned Deily
ce38f24af8
Issue #21811 : Anticipated fixes to 3.x and 2.7 for OS X 10.10 Yosemite.
2014-06-25 13:42:22 -07:00
Ned Deily
04cdfa1147
Issue #21811 : Anticipated fixes to 3.x and 2.7 for OS X 10.10 Yosemite.
2014-06-25 13:36:14 -07:00
Victor Stinner
893df48682
(Merge 3.4) asyncio, Tulip issue 177: Rewite repr() of Future, Task, Handle and
...
TimerHandle
- Uniformize repr() output to format "<Class ...>"
- On Python 3.5+, repr(Task) uses the qualified name instead of the short name
of the coroutine
2014-06-25 21:43:21 +02:00
Victor Stinner
975735f729
asyncio, Tulip issue 177: Rewite repr() of Future, Task, Handle and TimerHandle
...
- Uniformize repr() output to format "<Class ...>"
- On Python 3.5+, repr(Task) uses the qualified name instead of the short name
of the coroutine
2014-06-25 21:41:58 +02:00
Senthil Kumaran
fc0cad86c7
merge from 3.4
...
issue20753 - robotparser tests should not rely upon external resource when not required.
Specifically, it was relying a URL which gave HTTP 403 and used it to assert
it's methods, this changes undoes that and provides a local http server with
similar properties.
Patch contributed by Vajrasky Kok.
2014-06-25 02:58:53 -07:00
Senthil Kumaran
601d6ec693
issue20753 - robotparser tests should not rely upon external resource when not required.
...
Specifically, it was relying a URL which gave HTTP 403 and used it to assert
it's methods, this changes undoes that and provides a local http server with
similar properties.
Patch contributed by Vajrasky Kok.
2014-06-25 02:58:15 -07:00
Raymond Hettinger
ee205dc7d8
merge
2014-06-24 21:39:27 -07:00
Raymond Hettinger
97d3555029
Issue #19145 : Fix handling of negative values for a "times" keyword argument to itertools.repeat()>
...
(Patch contributed by Vajrasky Kok.)
2014-06-24 21:36:58 -07:00
Victor Stinner
5c2f5ab465
(Merge 3.4) asyncio: repr(Task) now also contains the line number even if the
...
coroutine is done: use the first line number of the code object instead of the
current line number of the generator frame.
The name of the coroutine is not enough because many coroutines may have the
same name. It's a common case in asyncio tests for example.
2014-06-24 22:58:23 +02:00
Victor Stinner
df29c4a83d
asyncio: repr(Task) now also contains the line number even if the coroutine is
...
done: use the first line number of the code object instead of the current line
number of the generator frame.
The name of the coroutine is not enough because many coroutines may have the
same name. It's a common case in asyncio tests for example.
2014-06-24 22:57:14 +02:00
R David Murray
24a3c72638
merge: #20155 : use fake HTTP method names so windows doesn't hang the tests.
2014-06-24 16:49:04 -04:00
R David Murray
14199f9392
#20155 : use fake HTTP method names so windows doesn't hang the tests.
...
Windows was seeing the 'GET' generated by these tests as invalid and forcibly
closing the socket, causing the test to fail.
Patch by Jeff Allen.
2014-06-24 16:39:49 -04:00
Victor Stinner
777aa64eaa
(Merge 3.4) asyncio: Log an error if a Task is destroyed while it is still pending
2014-06-24 22:38:31 +02:00
Victor Stinner
a02f81ff17
asyncio: Log an error if a Task is destroyed while it is still pending
2014-06-24 22:37:53 +02:00
Yury Selivanov
42407abe24
inspect: Validate that __signature__ is None or an instance of Signature.
...
Closes #21801 .
2014-06-23 10:23:50 -07:00
Yury Selivanov
c0f964fd55
inspect: Validate that __signature__ is None or an instance of Signature.
...
Closes #21801 .
2014-06-23 10:21:04 -07:00
Victor Stinner
425aaa11d8
(Merge 3.4) asyncio, Tulip issue 171: BaseEventLoop.close() now raises an
...
exception if the event loop is running. You must first stop the event loop and
then wait until it stopped, before closing it.
2014-06-23 01:03:13 +02:00
Victor Stinner
f328c7dc69
asyncio, Tulip issue 171: BaseEventLoop.close() now raises an exception if the
...
event loop is running. You must first stop the event loop and then wait until
it stopped, before closing it.
2014-06-23 01:02:37 +02:00
Victor Stinner
1217ab0e0f
(Merge 3.4) asyncio, Tulip issue 172: only log selector timing in debug mode
2014-06-23 00:31:31 +02:00
Victor Stinner
1580fe3fce
asyncio, Tulip issue 172: only log selector timing in debug mode
2014-06-23 00:31:08 +02:00
Victor Stinner
dc8b54cdf2
(Merge 3.4) asyncio: Add an unit test to check that setting the
...
PYTHONASYNCIODEBUG env var enables debug mode of the event loop.
2014-06-23 00:21:09 +02:00
Victor Stinner
c082ee692b
asyncio: Add an unit test to check that setting the PYTHONASYNCIODEBUG env var
...
enables debug mode of the event loop.
2014-06-23 00:19:33 +02:00
Victor Stinner
d42b49256f
(Merge 3.4) asyncio: Enable the debug mode of event loops when the
...
PYTHONASYNCIODEBUG environment variable is set
2014-06-23 00:14:45 +02:00
Victor Stinner
7b7120e159
asyncio: Enable the debug mode of event loops when the PYTHONASYNCIODEBUG
...
environment variable is set
2014-06-23 00:12:14 +02:00
Benjamin Peterson
a96fea03e8
add BufferedIOBase.readinto1 ( closes #20578 )
...
Patch by Nikolaus Rath.
2014-06-22 14:17:44 -07:00
Giampaolo Rodola'
bc8197a287
merge heads
2014-06-22 12:44:05 +02:00
Giampaolo Rodola'
4f2eb81280
#6916 : attempt to fix BB failure
2014-06-22 12:43:19 +02:00
Raymond Hettinger
bb91c1d019
Issue 21786: Clean-up test_pydoc taking taking advantage of diffing in unittest.
2014-06-21 12:08:22 -07:00
Raymond Hettinger
986efa074e
merge
2014-06-21 11:59:46 -07:00
Raymond Hettinger
fabefc3c5b
Issue 21635: Fix caching in difflib.SequenceMatcher.get_matching_blocks().
2014-06-21 11:57:36 -07:00
Giampaolo Rodola'
47177861dd
merge heads
2014-06-21 13:59:25 +02:00
Giampaolo Rodola'
bd0487694c
#6916 : raise a deprecation warning if using asynchat.fifo
2014-06-21 13:58:30 +02:00
Charles-François Natali
ca7e5d3e1d
Fix test_pydoc failure introduced by cddb17c4975e. Patch by Berker Peksag.
2014-06-20 23:00:22 +01:00
Charles-François Natali
8aa9e4268f
Merge.
2014-06-20 22:59:32 +01:00
Charles-François Natali
57398c31c4
Fix test_pydoc failure introduced by 7aa72075d440. Patch by Berker Peksag.
2014-06-20 22:59:12 +01:00