Skip to content

Commit

Permalink
Another bayer test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
waveform80 committed Jun 18, 2016
1 parent bfda831 commit 5b91daf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,10 @@ def test_capture_sequence_bayer(camera, mode):
streams = [io.BytesIO() for i in range(3)]
camera.capture_sequence(streams, format='jpeg', bayer=True)
for stream in streams:
stream.seek(-6404096, io.SEEK_END)
if camera.exif_tags['IFD0.Model'] == 'RP_ov5647':
stream.seek(-6404096, io.SEEK_END)
else:
stream.seek(-10270208, io.SEEK_END)
assert stream.read(4) == 'BRCM'

def test_exif_ascii(camera, mode):
Expand Down

0 comments on commit 5b91daf

Please sign in to comment.