Merge pull request #305 from msabramo/patch-3

Conditionally skip test_session_unicode on Py3k
This commit is contained in:
Jakub Roztočil 2015-02-10 16:00:24 +01:00
commit f1e1299104

View File

@ -1,6 +1,9 @@
# coding=utf-8
import os
import shutil
import sys
import pytest
from httpie.plugins.builtin import HTTPBasicAuth
from utils import TestEnvironment, mk_config_dir, http, HTTP_OK, \
@ -132,6 +135,10 @@ class TestSession(SessionTestBase):
assert HTTP_OK in r2
assert r2.json['headers']['Foo'] == 'Bar'
@pytest.mark.skipif(
sys.version_info >= (3,),
reason="This test fails intermittently on Python 3 - "
"see https://github.com/jakubroztocil/httpie/issues/282")
def test_session_unicode(self, httpbin):
self.start_session(httpbin)