X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Ftest-ovsdb.py;fp=tests%2Ftest-ovsdb.py;h=ea45f9aed8adcd26b2eb8dc96e01cc5d96ea7e0a;hb=ff2abab9c550b90f08b3ddb7487edded0c7903e6;hp=2eafe99f7c730eb215f2dec7ab51f6aa29d24036;hpb=f3399cd5be32fb67364959d75b973a4c23f2b19a;p=sliver-openvswitch.git diff --git a/tests/test-ovsdb.py b/tests/test-ovsdb.py index 2eafe99f7..ea45f9aed 100644 --- a/tests/test-ovsdb.py +++ b/tests/test-ovsdb.py @@ -98,7 +98,7 @@ def do_parse_atoms(type_string, *atom_strings): atom = data.Atom.from_json(base, atom_json) print ovs.json.to_string(atom.to_json()) except error.Error, e: - print e + print unicode(e) def do_parse_data(type_string, *data_strings): type_json = unbox_json(ovs.json.from_string(type_string)) @@ -290,10 +290,6 @@ The following options are also available: sys.exit(0) def main(argv): - # Make stdout and stderr UTF-8, even if they are redirected to a file. - sys.stdout = codecs.getwriter("utf-8")(sys.stdout) - sys.stderr = codecs.getwriter("utf-8")(sys.stderr) - try: options, args = getopt.gnu_getopt(argv[1:], 't:h', ['timeout',