diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2018-01-07 17:19:39 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2018-01-07 17:19:39 -0500 |
commit | d3a943129ce95a62176cdfed1e4b090f2612a876 (patch) | |
tree | 3c875383ec9fbc700073c384802dbb4457d716ce /tests/test_process.py | |
parent | 7ae3630eac78ca4ba3ccbf84d4b1bef61fcaa8c5 (diff) | |
download | python-coveragepy-git-d3a943129ce95a62176cdfed1e4b090f2612a876.tar.gz |
Skip a test that fails due to a bug in PyPy3-5.10
Diffstat (limited to 'tests/test_process.py')
-rw-r--r-- | tests/test_process.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_process.py b/tests/test_process.py index 720734a8..b173c01d 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 |