[gnome-continuous-yocto/gnomeostree-3.28-rocko: 907/8267] bitbake: toaster: fix test_toaster_tables
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 907/8267] bitbake: toaster: fix test_toaster_tables
- Date: Sat, 16 Dec 2017 21:05:03 +0000 (UTC)
commit 79a3954afc6101012e1185806c70f566700475e0
Author: Ed Bartosh <ed bartosh linux intel com>
Date: Tue Jun 7 16:37:26 2016 +0100
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>
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 31f1431..2cd2c7d 100644
--- a/bitbake/lib/toaster/toastergui/tests.py
+++ b/bitbake/lib/toaster/toastergui/tests.py
@@ -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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]