From ec295698b683dd5f04df1fff49f9d1e2afdf0a86 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Fri, 26 Dec 2008 22:57:55 +0000 Subject: [PATCH] fix bugs in writing out failures git-svn-id: http://svn.openlayers.org/trunk/openlayers@8565 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/selenium/remotecontrol/test_ol.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/selenium/remotecontrol/test_ol.py b/tests/selenium/remotecontrol/test_ol.py index cc73e37ebb..1d48947b4b 100644 --- a/tests/selenium/remotecontrol/test_ol.py +++ b/tests/selenium/remotecontrol/test_ol.py @@ -52,7 +52,7 @@ if 1: if fail: print "Failed: %s" % fail - html = s.get_eval("window.document.getElementById('results').innerHTML").decode("utf-8") + html = s.get_eval("window.document.getElementById('results').innerHTML").encode("utf-8") all_html = """ @@ -60,7 +60,7 @@ if 1: %s""" % html f = open("fail.%s.%s.html" % (time.time(), b['name']), "w") - f.write(all_html.encode) + f.write(all_html) f.close() except Exception, E: print "Error: ", E