asyncio: PendingDeprecationWarning -> DeprecationWarning (GH-12494)
`Task.current_task()` and `Task.all_tasks()` will be removed in 3.9.
diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py
index 15422da..d850837 100644
--- a/Lib/asyncio/tasks.py
+++ b/Lib/asyncio/tasks.py
@@ -97,7 +97,7 @@
"""
warnings.warn("Task.current_task() is deprecated, "
"use asyncio.current_task() instead",
- PendingDeprecationWarning,
+ DeprecationWarning,
stacklevel=2)
if loop is None:
loop = events.get_event_loop()
@@ -111,7 +111,7 @@
"""
warnings.warn("Task.all_tasks() is deprecated, "
"use asyncio.all_tasks() instead",
- PendingDeprecationWarning,
+ DeprecationWarning,
stacklevel=2)
return _all_tasks_compat(loop)