[pypy-commit] pypy default: (mattip, arigo)

arigo pypy.commits at gmail.com
Sat Mar 17 11:24:48 EDT 2018


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r93981:60377e65ccee
Date: 2018-03-17 16:24 +0100
http://bitbucket.org/pypy/pypy/changeset/60377e65ccee/

Log:	(mattip, arigo)

	Randomly fix a failure on narrow unicode builds

diff --git a/pypy/module/unicodedata/test/test_hyp.py b/pypy/module/unicodedata/test/test_hyp.py
--- a/pypy/module/unicodedata/test/test_hyp.py
+++ b/pypy/module/unicodedata/test/test_hyp.py
@@ -1,3 +1,4 @@
+import sys
 import pytest
 try:
     from hypothesis import given, strategies as st, example, settings
@@ -44,5 +45,7 @@
 @settings(max_examples=1000)
 @given(s=st.text())
 def test_composition(s, space, NF1, NF2, NF3):
+    if s == u'\ufacf' and sys.maxunicode == 65535:
+        pytest.skip('chr(0xfacf) normalizes to chr(0x2284a), which is too big')
     norm1, norm2, norm3 = [make_normalization(space, form) for form in [NF1, NF2, NF3]]
     assert norm2(norm1(s)) == norm3(s)


More information about the pypy-commit mailing list