Line 0
Link Here
|
|
|
1 |
Make tests work with devel/py-pytest >= 4 |
2 |
|
3 |
Obtained from: |
4 |
https://github.com/psf/requests/commit/0fe6653eabc3e0a4b8c48e374fb7ee83a3bf829b |
5 |
|
6 |
--- tests/test_utils.py.orig 2019-05-16 14:18:16 UTC |
7 |
+++ tests/test_utils.py |
8 |
@@ -33,7 +33,8 @@ class TestSuperLen: |
9 |
'stream, value', ( |
10 |
(StringIO.StringIO, 'Test'), |
11 |
(BytesIO, b'Test'), |
12 |
- pytest.mark.skipif('cStringIO is None')((cStringIO, 'Test')), |
13 |
+ pytest.param(cStringIO, 'Test', |
14 |
+ marks=pytest.mark.skipif('cStringIO is None')), |
15 |
)) |
16 |
def test_io_streams(self, stream, value): |
17 |
"""Ensures that we properly deal with different kinds of IO streams.""" |