running pytest running egg_info creating tenacity.egg-info writing tenacity.egg-info/PKG-INFO writing dependency_links to tenacity.egg-info/dependency_links.txt writing requirements to tenacity.egg-info/requires.txt writing top-level names to tenacity.egg-info/top_level.txt writing manifest file 'tenacity.egg-info/SOURCES.txt' reading manifest file 'tenacity.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'tenacity.egg-info/SOURCES.txt' running build_ext ============================= test session starts ============================== platform linux -- Python 3.10.1, pytest-6.2.5, py-1.11.0, pluggy-0.13.1 rootdir: /build/python-tenacity/src/tenacity-8.0.1, configfile: setup.cfg collected 105 items tests/test_after.py .. [ 1%] tests/test_asyncio.py .......... [ 11%] tests/test_tenacity.py ................................................. [ 58%] .....................................F.. [ 96%] tests/test_tornado.py .... [100%] =================================== FAILURES =================================== _________________ TestRetryTyping.test_retry_type_annotations __________________ self = @pytest.mark.skipif(sys.version_info < (3, 0), reason="typeguard not supported for python 2") def test_retry_type_annotations(self): """The decorator should maintain types of decorated functions.""" # Just in case this is run with unit-test, return early for py2 if sys.version_info < (3, 0): return # Function-level import because we can't install this for python 2. > from typeguard import check_type E ModuleNotFoundError: No module named 'typeguard' tests/test_tenacity.py:1434: ModuleNotFoundError =============================== warnings summary =============================== tests/test_asyncio.py::TestAsync::test_attempt_number_is_correct_for_interleaved_coroutines tests/test_asyncio.py::TestAsync::test_iscoroutinefunction tests/test_asyncio.py::TestAsync::test_retry tests/test_asyncio.py::TestAsync::test_retry_using_async_retying tests/test_asyncio.py::TestAsync::test_stop_after_attempt tests/test_asyncio.py::TestContextManager::test_do_max_attempts tests/test_asyncio.py::TestContextManager::test_reraise tests/test_asyncio.py::TestContextManager::test_sleeps /build/python-tenacity/src/tenacity-8.0.1/tests/test_asyncio.py:32: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() tests/test_tornado.py::TestTornado::test_old_tornado tests/test_tornado.py::TestTornado::test_repr tests/test_tornado.py::TestTornado::test_retry tests/test_tornado.py::TestTornado::test_stop_after_attempt /usr/lib/python3.10/site-packages/tornado/ioloop.py:263: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() tests/test_tornado.py::TestTornado::test_old_tornado tests/test_tornado.py::TestTornado::test_repr tests/test_tornado.py::TestTornado::test_retry tests/test_tornado.py::TestTornado::test_stop_after_attempt /usr/lib/python3.10/site-packages/tornado/platform/asyncio.py:326: DeprecationWarning: There is no current event loop self.old_asyncio = asyncio.get_event_loop() -- Docs: https://docs.pytest.org/en/stable/warnings.html =========================== short test summary info ============================ FAILED tests/test_tenacity.py::TestRetryTyping::test_retry_type_annotations ================= 1 failed, 104 passed, 16 warnings in 18.24s ================== ==> ERROR: A failure occurred in check().  Aborting...