diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-06-07 16:37:26 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-15 08:35:06 +0100 |
commit | 79a3954afc6101012e1185806c70f566700475e0 (patch) | |
tree | 558e4227a37b6d26e097df17f780356d8cb24b01 /bitbake/lib/toaster/toastergui/tests.py | |
parent | 4422d26dd6e13f271852a9285f6c1cf90d689f26 (diff) | |
download | poky-79a3954afc6101012e1185806c70f566700475e0.tar.gz |
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>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/tests.py')
-rw-r--r-- | bitbake/lib/toaster/toastergui/tests.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/bitbake/lib/toaster/toastergui/tests.py b/bitbake/lib/toaster/toastergui/tests.py index 31f1431ea3..2cd2c7d163 100644 --- a/bitbake/lib/toaster/toastergui/tests.py +++ b/bitbake/lib/toaster/toastergui/tests.py | |||
@@ -382,12 +382,6 @@ class ViewTests(TestCase): | |||
382 | else: | 382 | else: |
383 | ret = BeautifulSoup(td).text | 383 | ret = BeautifulSoup(td).text |
384 | 384 | ||
385 | # We change the td into ascii as a way to remove characters | ||
386 | # such as \xa0 (non break space) which mess with the ordering | ||
387 | # comparisons | ||
388 | ret.strip().encode('ascii', | ||
389 | errors='replace').replace('?', ' ') | ||
390 | # Case where the td is empty | ||
391 | if len(ret): | 385 | if len(ret): |
392 | return "0" | 386 | return "0" |
393 | else: | 387 | else: |