From: Christopher Allan Webber Date: Thu, 11 Feb 2016 19:36:05 +0000 (-0800) Subject: Fixing one more bytes vs string battle in Python 3 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cd4a7492cd2fd7ae332ecdaaec93a2bc3be9cf4e;p=mediagoblin.git Fixing one more bytes vs string battle in Python 3 --- 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(