test-ovsdb: Workaround unicode bug in Python 2.4.x.
authorGurucharan Shetty <gshetty@nicira.com>
Fri, 20 Jun 2014 20:13:51 +0000 (13:13 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Fri, 27 Jun 2014 15:18:33 +0000 (08:18 -0700)
commit972e2d1de6e23197783fb70d043a84e615b21bd1
tree402a95e1a458a18bc5b24bb6a3f7ea5097d0d7a1
parent912273bb8788104a0c23c8755e7a620a718f57b9
test-ovsdb: Workaround unicode bug in Python 2.4.x.

Run the following command on Xenserver:
PYTHONPATH=`pwd`/python/compat::`pwd`/python python ./tests/test-ovsdb.py \
parse-atoms '{"type": "string", "minLength": 2}'    \
'[""]'     '["a"]'     '["ab"]'     '["abc"]'     '["\ud834\udd1e"]'

And we get the following error:
UnicodeEncodeError: 'ascii' codec can't encode character u'\U0001d11e'
in position 23: ordinal not in range(128).

It looks like we are hitting the following bug:
http://bugs.python.org/issue2517

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-By: Ben Pfaff <blp@nicira.com>
tests/test-ovsdb.py