[tests] Workaround Python 2 “narrow” builds
authorKhaled Hosny <khaledhosny@eglug.org>
Sat, 18 Jun 2016 19:12:19 +0000 (21:12 +0200)
committerKhaled Hosny <khaledhosny@eglug.org>
Sat, 18 Jun 2016 21:01:58 +0000 (23:01 +0200)
commit988350586f607c7a46bbb658a2abecfd004f41fb
tree86a66cc5367c072a6f24d93c5062d1ec23a03d42
parent4b8de1ea804b225e8357422d0686aad76b05ccf3
[tests] Workaround Python 2 “narrow” builds

The so-called Python 2 “narrow” builds support UCS2 only, this is a
workaround to allow unichr to work with any Unicode character in such
builds. This fixes Travis-CI failure as it has narrow Python 2 builds.

Copied from:
https://github.com/behdad/fonttools/blob/master/Lib/fontTools/misc/py23.py
test/shaping/hb_test_tools.py