File 0001-Make-transfer_markers-a-noop-when-importing-fails.patch of Package python-pytest-asyncio.28337
From 2c8023d5e123644a1990dcf978b527ddafeca8f7 Mon Sep 17 00:00:00 2001
From: Tomer Keren <tomer.keren.dev@gmail.com>
Date: Sun, 6 Jan 2019 23:59:07 +0200
Subject: [PATCH] Make transfer_markers a noop when importing fails
---
pytest_asyncio/plugin.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
--- a/pytest_asyncio/plugin.py
+++ b/pytest_asyncio/plugin.py
@@ -6,7 +6,12 @@ import socket
from concurrent.futures import ProcessPoolExecutor
import pytest
-from _pytest.python import transfer_markers
+try:
+ from _pytest.python import transfer_markers
+except ImportError: # Pytest 4.1.0 removes the transfer_marker api (#104)
+ def transfer_markers(*args, **kwargs): # noqa
+ """Noop when over pytest 4.1.0"""
+ pass
try:
from async_generator import isasyncgenfunction