From b7415c4955f43ded43f4a299bc23e8faf171b557 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 7 Jan 2018 17:19:39 -0500 Subject: Skip a test that fails due to a bug in PyPy3-5.10 --- tests/test_process.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test_process.py b/tests/test_process.py index 720734a..b173c01 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -552,6 +552,9 @@ class ProcessTest(CoverageTest): self.assertIn("Trace function changed", out) def test_note(self): + if env.PYPY and env.PYPYVERSION[:2] == (5, 10): + # https://bitbucket.org/pypy/pypy/issues/2729/pypy3-510-incorrectly-decodes-astral-plane + self.skipTest("Avoid incorrect decoding astral plane JSON chars") self.make_file(".coveragerc", """\ [run] data_file = mydata.dat @@ -564,7 +567,8 @@ class ProcessTest(CoverageTest): data.read_file("mydata.dat") infos = data.run_infos() self.assertEqual(len(infos), 1) - self.assertEqual(infos[0]['note'], u"These are musical notes: ♫𝅗𝅥♩") + expected = u"These are musical notes: ♫𝅗𝅥♩" + self.assertEqual(infos[0]['note'], expected) @pytest.mark.expensive def test_fullcoverage(self): # pragma: no metacov -- cgit v1.2.1