diff options
| author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-06-07 16:37:25 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-15 08:35:05 +0100 |
| commit | 4422d26dd6e13f271852a9285f6c1cf90d689f26 (patch) | |
| tree | c74e0e8f76ba08d137b87eebaf982ae2a42af79d /bitbake | |
| parent | c28f918e5d0df775324da965f03b354a83e78920 (diff) | |
| download | poky-4422d26dd6e13f271852a9285f6c1cf90d689f26.tar.gz | |
bitbake: 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]
(Bitbake rev: eb23a84e079125a08d0c8e910f7035ad9584c432)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
| -rw-r--r-- | bitbake/lib/toaster/toastergui/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/tests.py b/bitbake/lib/toaster/toastergui/tests.py index 722b383509..31f1431ea3 100644 --- a/bitbake/lib/toaster/toastergui/tests.py +++ b/bitbake/lib/toaster/toastergui/tests.py | |||
| @@ -304,7 +304,7 @@ class ViewTests(TestCase): | |||
| 304 | """Download the recipe file generated for the custom image""" | 304 | """Download the recipe file generated for the custom image""" |
| 305 | 305 | ||
| 306 | # Create a dummy recipe file for the custom image generation to read | 306 | # Create a dummy recipe file for the custom image generation to read |
| 307 | open("/tmp/a_recipe.bb", 'wa').close() | 307 | open("/tmp/a_recipe.bb", 'a').close() |
| 308 | response = self.client.get(reverse('customrecipedownload', | 308 | response = self.client.get(reverse('customrecipedownload', |
| 309 | args=(self.project.id, | 309 | args=(self.project.id, |
| 310 | self.customr.id))) | 310 | self.customr.id))) |
