[oe-commits] [bitbake] 11/26: toaster: fix incorrect file mode

git at git.openembedded.org git at git.openembedded.org
Tue Jun 14 10:10:19 UTC 2016


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

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

    toaster: fix incorrect file mode
    
    Python 3 complains about 'wa' mode this way:
     ValueError: must have exactly one of create/read/write/append mode
    
    Fixed by using 'a' mode.
    
    [YOCTO #9584]
    
    Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
---
 lib/toaster/toastergui/tests.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/toaster/toastergui/tests.py b/lib/toaster/toastergui/tests.py
index 722b383..31f1431 100644
--- a/lib/toaster/toastergui/tests.py
+++ b/lib/toaster/toastergui/tests.py
@@ -304,7 +304,7 @@ class ViewTests(TestCase):
         """Download the recipe file generated for the custom image"""
 
         # Create a dummy recipe file for the custom image generation to read
-        open("/tmp/a_recipe.bb", 'wa').close()
+        open("/tmp/a_recipe.bb", 'a').close()
         response = self.client.get(reverse('customrecipedownload',
                                            args=(self.project.id,
                                                  self.customr.id)))

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


More information about the Openembedded-commits mailing list