From 873102d5ebd98d811c5f1247ef267e554e4da7b8 Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Mon, 9 Feb 2015 18:15:22 -0800 Subject: [PATCH] Mark test_session_unicode as xfail There are known problems with unicode in headers. See https://github.com/jakubroztocil/httpie/issues/282 --- tests/test_sessions.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_sessions.py b/tests/test_sessions.py index 6d598584..210f9d95 100644 --- a/tests/test_sessions.py +++ b/tests/test_sessions.py @@ -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)