tests: Deal with Python output differences.
authorRussell Bryant <russell@ovn.org>
Thu, 17 Dec 2015 17:22:31 +0000 (12:22 -0500)
committerRussell Bryant <russell@ovn.org>
Mon, 22 Feb 2016 20:17:23 +0000 (15:17 -0500)
commit64eb96a9af0917a4c7b8e0441d2e49404fd247d5
tree1244e17e726d29c5b37624dbb660becc5fd15fb1
parente8fed7d01ca6fb6c7e96faf2b831fcfa4552cb4a
tests: Deal with Python output differences.

This test checks the output based on Python's string representation of
an array of two unicode strings.  These strings have a "u" prefix in
Python 2, but not Python 3.  In Python 3, all strings are unicode.

Use sed on the output to strip the "u" from Python 2 output when
checking for the expected result.

Signed-off-by: Russell Bryant <russell@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
tests/test-json.py
tests/test-ovsdb.py
tests/unixctl-py.at