Disable pytest_asyncio
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Wed, 26 Aug 2020 21:34:50 +0000 (22:34 +0100)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Wed, 26 Aug 2020 21:34:50 +0000 (22:34 +0100)
Debian currently has incompatible versions of pytest_asyncio and
pytest, causing these tests to error on collection.

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/969050
Forwarded: not-needed https://github.com/pandas-dev/pandas/pull/35757

Gbp-Pq: Name disable_pytest_asyncio.patch

pandas/util/_test_decorators.py

index eb0f8022034c90bdd60df7180e5ea25b9989c67f..5f40d2c4c7eb07eb83f8d06c3137158d974aa940 100644 (file)
@@ -255,10 +255,6 @@ def check_file_leaks(func) -> Callable:
 
 
 def async_mark():
-    try:
-        import_optional_dependency("pytest_asyncio")
-        async_mark = pytest.mark.asyncio
-    except ImportError:
-        async_mark = pytest.mark.skip(reason="Missing dependency pytest-asyncio")
+    async_mark = pytest.mark.skip(reason="https://bugs.debian.org/969050")
 
     return async_mark