aboutsummaryrefslogtreecommitdiffstats
path: root/test/metadata.py
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier@tilloy.net>2010-12-09 21:24:39 +0100
committerOlivier Tilloy <olivier@tilloy.net>2010-12-09 21:24:39 +0100
commitf1679ef96d1c88d2152418a10f5ed26d3c0bdaa7 (patch)
tree5617be68b5b557c910e88ff06755b5b90b7a440b /test/metadata.py
parent2c0baa6f2e95ec242d30ef6ef320bfd97194c32d (diff)
downloadpyexiv2-f1679ef96d1c88d2152418a10f5ed26d3c0bdaa7.tar.gz
Fix test_write_exif_thumbnail_to_file on windows.
The file must be explicitly opened in binary mode for the comparison to work.
Diffstat (limited to 'test/metadata.py')
-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)