Merge "Fix UnicodeDecodeError"

This commit is contained in:
Zuul 2018-01-22 14:20:18 +00:00 committed by Gerrit Code Review
commit 85a4ee2a12
3 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ class TestBasicExample(base.TestCase):
self.status = status
self.warning = warning
self.app.build()
self.html = (app.outdir / 'index.html').read_text()
self.html = (app.outdir / 'index.html').read_text(encoding='utf-8')
self.soup = BeautifulSoup(self.html, 'html.parser')
self.content = str(self.soup)

View File

@ -38,7 +38,7 @@ class TestMicroversions(base.TestCase):
self.app.build()
self.status = status.getvalue()
self.warning = warning.getvalue()
self.html = (app.outdir / 'index.html').read_text()
self.html = (app.outdir / 'index.html').read_text(encoding='utf-8')
self.soup = BeautifulSoup(self.html, 'html.parser')
self.content = str(self.soup)

View File

@ -38,7 +38,7 @@ class TestWarnings(base.TestCase):
self.app.build()
self.status = status.getvalue()
self.warning = warning.getvalue()
self.html = (app.outdir / 'index.html').read_text()
self.html = (app.outdir / 'index.html').read_text(encoding='utf-8')
self.soup = BeautifulSoup(self.html, 'html.parser')
self.content = str(self.soup)