Skip to content
Myr

Merge pull request #5049 from hroncok/pytest4

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Support pytest 4

authored by Kenneth Reitz · committed by GitHub · parents dd15e52, dc75b3c · Browse files · 2 files+3 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−2 removed

  • tests:+2 added−1 removed
  • other:+1 added−1 removed

2 files+3 added−2 removed

modified:tests/test_utils.py+2 added-1 removed
31 unmodified lines
32 @pytest.mark.parametrize(33 'stream, value', (34 (StringIO.StringIO, 'Test'),35 (BytesIO, b'Test'),36 pytest.mark.skipif('cStringIO is None')((cStringIO, 'Test')),36 pytest.param(cStringIO, 'Test',37 marks=pytest.mark.skipif('cStringIO is None')),38 ))39 def test_io_streams(self, stream, value):40 """Ensures that we properly deal with different kinds of IO streams."""41 assert super_len(stream()) == 0
742 unmodified lines
modified:setup.py+1 added-1 removed
52 unmodified lines
53 'pytest-cov',54 'pytest-mock',55 'pytest-xdist',56 'PySocks>=1.5.6, !=1.5.7',57 'pytest>=2.8.0'57 'pytest>=3'58]5960about = {}61with open(os.path.join(here, 'requests', '__version__.py'), 'r', 'utf-8') as f:
47 unmodified lines