Skip to content

Commit

Permalink
Open zip file in binary mode
Browse files Browse the repository at this point in the history
  • Loading branch information
dgh1000 committed May 21, 2014
1 parent 7b8462d commit 1b2fdd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/controllers/editor_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,8 @@ def test_exploration_download_handler_for_default_exploration(self):
# Load golden zip file
with open(os.path.join(
feconf.TESTS_DATA_DIR,
'oppia-ThetitleforZIPdownloadhandlertest!-v2-gold.zip')) as f:
'oppia-ThetitleforZIPdownloadhandlertest!-v2-gold.zip'),
'rb') as f:
golden_zipfile = f.read()
zf_gold = zipfile.ZipFile(StringIO.StringIO(golden_zipfile))

Expand Down

0 comments on commit 1b2fdd0

Please sign in to comment.