[oe-commits] [bitbake] 30/44: toaster: fix test_toaster_tables

git at git.openembedded.org git at git.openembedded.org
Mon Jun 13 21:11:18 UTC 2016


rpurdie pushed a commit to branch master-next
in repository bitbake.

commit 8875cbe85a04b844782e6826ad56f22b97f4e435
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Tue Jun 7 16:37:26 2016 +0100

    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
    
    Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
---
 lib/toaster/toastergui/tests.py | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/lib/toaster/toastergui/tests.py b/lib/toaster/toastergui/tests.py
index 31f1431..2cd2c7d 100644
--- a/lib/toaster/toastergui/tests.py
+++ b/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:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list