diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2010-12-09 21:24:39 +0100 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2010-12-09 21:24:39 +0100 |
commit | f1679ef96d1c88d2152418a10f5ed26d3c0bdaa7 (patch) | |
tree | 5617be68b5b557c910e88ff06755b5b90b7a440b /test | |
parent | 2c0baa6f2e95ec242d30ef6ef320bfd97194c32d (diff) | |
download | pyexiv2-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')
-rw-r--r-- | test/metadata.py | 2 |
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) |