1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 17:19:20 +00:00

bitbake: toaster: fix test_toaster_tables

Removed unneeded code as it causes the following error in Python 3:
    TypeError: expected bytes, bytearray or buffer compatible object

(Bitbake rev: 1626e986820da626c19aa8c664155a2cb1db8fd9)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ed Bartosh
2016-06-07 16:37:26 +01:00
committed by Richard Purdie
parent 4422d26dd6
commit 79a3954afc
-6
View File
@@ -382,12 +382,6 @@ class ViewTests(TestCase):
else:
ret = BeautifulSoup(td).text
# We change the td into ascii as a way to remove characters
# such as \xa0 (non break space) which mess with the ordering
# comparisons
ret.strip().encode('ascii',
errors='replace').replace('?', ' ')
# Case where the td is empty
if len(ret):
return "0"
else: