summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2018-01-07 17:19:39 -0500
committerNed Batchelder <ned@nedbatchelder.com>2018-01-07 17:19:39 -0500
commitb7415c4955f43ded43f4a299bc23e8faf171b557 (patch)
treed94452fc0608b6f71ec4b61cc88afef558795d7b
parent57414b8854da772d81008576f70a63e2dec220d5 (diff)
downloadpython-coveragepy-b7415c4955f43ded43f4a299bc23e8faf171b557.tar.gz
Skip a test that fails due to a bug in PyPy3-5.10
-rw-r--r--tests/test_process.py6
1 files changed, 5 insertions, 1 deletions
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