Pick up Miro's pytest 4 fix
This commit is contained in:
parent
85a268d1e6
commit
ad843d5615
@ -36,6 +36,9 @@ Patch4: Don-t-inject-pyopenssl-into-urllib3.patch
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1653223
|
||||
Patch5: requests-2.20.0-no-py2-httpbin.patch
|
||||
|
||||
# https://github.com/kennethreitz/requests/pull/5049
|
||||
Patch6: support-pytest-4.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
|
26
support-pytest-4.patch
Normal file
26
support-pytest-4.patch
Normal file
@ -0,0 +1,26 @@
|
||||
From 7a33a8e523be6aa40c7e5435d3c5d92f2cc6e9a0 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
|
||||
Date: Mon, 8 Apr 2019 18:04:22 +0200
|
||||
Subject: [PATCH] Support pytest 4
|
||||
|
||||
Fixes https://github.com/kennethreitz/requests/issues/5048
|
||||
|
||||
See https://docs.pytest.org/en/latest/deprecations.html#marks-in-pytest-mark-parametrize
|
||||
---
|
||||
tests/test_utils.py | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git a/tests/test_utils.py b/tests/test_utils.py
|
||||
index 59b0b0efa..62c51494d 100644
|
||||
--- a/tests/test_utils.py
|
||||
+++ b/tests/test_utils.py
|
||||
@@ -33,7 +33,8 @@ class TestSuperLen:
|
||||
'stream, value', (
|
||||
(StringIO.StringIO, 'Test'),
|
||||
(BytesIO, b'Test'),
|
||||
- pytest.mark.skipif('cStringIO is None')((cStringIO, 'Test')),
|
||||
+ pytest.param(cStringIO, 'Test',
|
||||
+ marks=pytest.mark.skipif('cStringIO is None')),
|
||||
))
|
||||
def test_io_streams(self, stream, value):
|
||||
"""Ensures that we properly deal with different kinds of IO streams."""
|
Loading…
Reference in New Issue
Block a user