aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/metadata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/metadata.py b/test/metadata.py
index 33121d4..706a3b9 100644
--- a/test/metadata.py
+++ b/test/metadata.py
@@ -738,7 +738,7 @@ class TestImageMetadata(unittest.TestCase):
os.remove(pathname)
thumb.write_to_file(pathname)
pathname = pathname + thumb.extension
- fd = open(pathname)
+ fd = open(pathname, 'rb')
self.assertEqual(fd.read(), EMPTY_JPG_DATA)
fd.close()
os.remove(pathname)