From d533becc07bbebba6d592697178a12523500f910 Mon Sep 17 00:00:00 2001 From: meejah Date: Fri, 31 Jan 2020 09:47:40 -0700 Subject: [PATCH] native strings only --- src/allmydata/test/web/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/allmydata/test/web/common.py b/src/allmydata/test/web/common.py index 1f574573b..15743bb92 100644 --- a/src/allmydata/test/web/common.py +++ b/src/allmydata/test/web/common.py @@ -30,7 +30,7 @@ def assert_soup_has_tag_with_attributes(testcase, soup, tag_name, attrs): return # we found every attr in this tag; done # seems like exceptions can't support unicode text in python2?? testcase.fail( - u"No <{}> tags contain attributes: {}".format(tag_name, attrs).encode("utf8") + "No <{}> tags contain attributes: {}".format(tag_name, attrs) ) @@ -74,7 +74,7 @@ def assert_soup_has_tag_with_content(testcase, soup, tag_name, content): return # seems like exceptions can't support unicode text in python2?? testcase.fail( - u"No <{}> tag contains the text '{}'".format(tag_name, content).encode('utf8') + "No <{}> tag contains the text '{}'".format(tag_name, content).encode('utf8') )