projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0eba7c3
)
bpo-33789, test_asyncio: Hide PendingDeprecationWarning (GH-7461)
author
Victor Stinner
<vstinner@redhat.com>
Wed, 6 Jun 2018 23:13:48 +0000
(
01:13
+0200)
committer
GitHub
<noreply@github.com>
Wed, 6 Jun 2018 23:13:48 +0000
(
01:13
+0200)
Hide PendingDeprecationWarning in test__register_task_3().
Lib/test/test_asyncio/test_tasks.py
patch
|
blob
|
history
diff --git
a/Lib/test/test_asyncio/test_tasks.py
b/Lib/test/test_asyncio/test_tasks.py
index 1c1a0ac01f5c16ee81165fc6b3f78fb66d111a5f..1079d49a402157d7f3774c0e46224ab33002b107 100644
(file)
--- a/
Lib/test/test_asyncio/test_tasks.py
+++ b/
Lib/test/test_asyncio/test_tasks.py
@@
-2613,7
+2613,8
@@
class BaseTaskIntrospectionTests:
self.assertEqual(asyncio.all_tasks(loop), set())
self._register_task(task)
self.assertEqual(asyncio.all_tasks(loop), set())
- self.assertEqual(asyncio.Task.all_tasks(loop), {task})
+ with self.assertWarns(PendingDeprecationWarning):
+ self.assertEqual(asyncio.Task.all_tasks(loop), {task})
self._unregister_task(task)
def test__enter_task(self):