X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Ftest-ovsdb.py;h=ea45f9aed8adcd26b2eb8dc96e01cc5d96ea7e0a;hb=e6269c12f294f71c9e6a31c153a12cf26124c235;hp=2eafe99f7c730eb215f2dec7ab51f6aa29d24036;hpb=c5f341ab193b9126dffef8c77bf8ed35e91290fd;p=openvswitch diff --git a/tests/test-ovsdb.py b/tests/test-ovsdb.py index 2eafe99f..ea45f9ae 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',