Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(423)

Unified Diff: tests/test_base_events.py

Issue 64900043: Save the traceback where a Future/Task was created
Patch Set: Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/test_base_events.py
===================================================================
--- a/tests/test_base_events.py
+++ b/tests/test_base_events.py
@@ -347,8 +347,8 @@ class BaseEventLoopTests(unittest.TestCa
# Future.__del__ in Python 3.4 logs error with
# an actual exception context
log.error.assert_called_with(
- test_utils.MockPattern('.*exception was never retrieved'),
- exc_info=(ZeroDivisionError, MOCK_ANY, MOCK_ANY))
+ test_utils.MockPattern('.*exception was never retrieved.*ZeroDiv'),
+ exc_info=False)
else:
# futures._TracebackLogger logs only textual traceback
log.error.assert_called_with(
« asyncio/futures.py ('K') | « asyncio/futures.py ('k') | tests/test_futures.py » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b