From cd4a7492cd2fd7ae332ecdaaec93a2bc3be9cf4e Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Thu, 11 Feb 2016 11:36:05 -0800 Subject: [PATCH] Fixing one more bytes vs string battle in Python 3 --- mediagoblin/tests/test_workbench.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mediagoblin/tests/test_workbench.py b/mediagoblin/tests/test_workbench.py index f3ff57ed..3202e698 100644 --- a/mediagoblin/tests/test_workbench.py +++ b/mediagoblin/tests/test_workbench.py @@ -69,7 +69,7 @@ class TestWorkbench(object): filepath = ['dir1', 'dir2', 'ourfile.txt'] with this_storage.get_file(filepath, 'w') as our_file: - our_file.write('Our file') + our_file.write(b'Our file') # with a local file storage filename = this_workbench.localized_file(this_storage, filepath) @@ -83,7 +83,7 @@ class TestWorkbench(object): # ... write a brand new file, again ;) with this_storage.get_file(filepath, 'w') as our_file: - our_file.write('Our file') + our_file.write(b'Our file') filename = this_workbench.localized_file(this_storage, filepath) assert filename == os.path.join( -- 2.25.1