From: Ed Bartosh Date: Tue, 7 Jun 2016 15:37:25 +0000 (+0100) Subject: toaster: fix incorrect file mode X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb23a84e079125a08d0c8e910f7035ad9584c432;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- diff --git a/lib/toaster/toastergui/tests.py b/lib/toaster/toastergui/tests.py index 722b3835095..31f1431ea3f 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)))