提交 6772f907 编写于 作者: T Thomas Kluyver

Re-suppress asyncio deprecation warnings in AsyncTestCase

上级 e4559b30
......@@ -182,6 +182,13 @@ class AsyncTestCase(unittest.TestCase):
self._test_generator = None # type: Optional[Union[Generator, Coroutine]]
def setUp(self) -> None:
setup_with_context_manager(self, warnings.catch_warnings())
warnings.filterwarnings(
"ignore",
message="There is no current event loop",
category=DeprecationWarning,
module=r"tornado\..*",
)
super().setUp()
self.io_loop = self.get_new_ioloop()
self.io_loop.make_current()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册