304e47
From 7a33a8e523be6aa40c7e5435d3c5d92f2cc6e9a0 Mon Sep 17 00:00:00 2001
304e47
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
304e47
Date: Mon, 8 Apr 2019 18:04:22 +0200
304e47
Subject: [PATCH] Support pytest 4
304e47
304e47
Fixes https://github.com/kennethreitz/requests/issues/5048
304e47
304e47
See https://docs.pytest.org/en/latest/deprecations.html#marks-in-pytest-mark-parametrize
304e47
---
304e47
 tests/test_utils.py |  3 ++-
304e47
 1 file changed, 2 insertions(+), 1 deletions(-)
304e47
304e47
diff --git a/tests/test_utils.py b/tests/test_utils.py
304e47
index 59b0b0efa..62c51494d 100644
304e47
--- a/tests/test_utils.py
304e47
+++ b/tests/test_utils.py
304e47
@@ -33,7 +33,8 @@ class TestSuperLen:
304e47
         'stream, value', (
304e47
             (StringIO.StringIO, 'Test'),
304e47
             (BytesIO, b'Test'),
304e47
-            pytest.mark.skipif('cStringIO is None')((cStringIO, 'Test')),
304e47
+            pytest.param(cStringIO, 'Test',
304e47
+                         marks=pytest.mark.skipif('cStringIO is None')),
304e47
         ))
304e47
     def test_io_streams(self, stream, value):
304e47
         """Ensures that we properly deal with different kinds of IO streams."""