From 3900879a5c261dc06ac69415b7b3507ec6142a9c Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Thu, 9 Nov 2017 19:14:20 -0200 Subject: [PATCH] Mark test_py2_unicode as xfail in PyPy2 on Windows #2905 --- testing/test_warnings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testing/test_warnings.py b/testing/test_warnings.py index 1328cc3f2..12539f8ee 100644 --- a/testing/test_warnings.py +++ b/testing/test_warnings.py @@ -144,6 +144,8 @@ def test_unicode(testdir, pyfile_with_warnings): @pytest.mark.skipif(sys.version_info >= (3, 0), reason='warnings message is broken as it is not str instance') def test_py2_unicode(testdir, pyfile_with_warnings): + if getattr(sys, "pypy_version_info", ())[:2] == (5, 9) and sys.platform.startswith('win'): + pytest.xfail("fails with unicode error on PyPy2 5.9 and Windows (#2905)") testdir.makepyfile(''' # -*- coding: utf8 -*- import warnings