File pytest41-compatibility.patch of Package python3-flaky.29613
From 9f29ed0350391c821f04118fde3f019d970dc8b2 Mon Sep 17 00:00:00 2001
From: Bernat Gabor <bgabor8@bloomberg.net>
Date: Mon, 7 Jan 2019 10:31:12 +0000
Subject: [PATCH] #139 pytest 4.1 compatibility
---
flaky/flaky_pytest_plugin.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/flaky/flaky_pytest_plugin.py b/flaky/flaky_pytest_plugin.py
index bacf8eb..193d438 100644
--- a/flaky/flaky_pytest_plugin.py
+++ b/flaky/flaky_pytest_plugin.py
@@ -269,7 +269,7 @@ def call_runtest_hook(self, item, when, **kwds):
"""
hookname = "pytest_runtest_" + when
ihook = getattr(item.ihook, hookname)
- call_info = CallInfo(
+ call_info = getattr(CallInfo, "from_call", CallInfo)(
lambda: ihook(item=item, **kwds),
when=when,
)