]> khamidou — GitHub mirrors - vcrpy.git/commitdiff
xfail for test_post_chunked_binary_secure on CPython 3.5
authorHugo <hugovk@users.noreply.github.com>
Mon, 15 Jan 2018 13:05:53 +0000 (15:05 +0200)
committerHugo <hugovk@users.noreply.github.com>
Mon, 15 Jan 2018 13:05:53 +0000 (15:05 +0200)
tests/integration/test_requests.py

index 81e78bfbd1e24652df37d69e7587e67bd2eb742f..6e1511d8a53785e080c5659171b0eb59d741c54f 100644 (file)
@@ -1,6 +1,8 @@
 # -*- coding: utf-8 -*-
 '''Test requests' interaction with vcr'''
+import platform
 import pytest
+import sys
 import vcr
 from assertions import assert_cassette_empty, assert_is_json
 
@@ -115,6 +117,9 @@ def test_post_chunked_binary(tmpdir, httpbin):
 
 
 @pytest.mark.xfail('sys.version_info >= (3, 6)', strict=True, raises=ConnectionError)
+@pytest.mark.xfail((3, 5) < sys.version_info < (3, 6) and
+                   platform.python_implementation() == 'CPython',
+                   reason='Fails on CPython 3.5')
 def test_post_chunked_binary_secure(tmpdir, httpbin_secure):
     '''Ensure that we can send chunked binary without breaking while trying to concatenate bytes with str.'''
     data1 = iter([b'data', b'to', b'send'])