[Python-modules-commits] [thumbor] 01/02: Fixed reorientate tests for big endian machines

Marcelo Jorge Vieira metal at moszumanska.debian.org
Tue Dec 19 01:22:53 UTC 2017


This is an automated email from the git hooks/post-receive script.

metal pushed a commit to branch master
in repository thumbor.

commit 4eccd2abe7cb22f181f05150c0fab307c6e5fd03
Author: Marcelo Jorge Vieira <metal at alucinados.com>
Date:   Mon Dec 18 23:06:11 2017 -0200

    Fixed reorientate tests for big endian machines
    
    exif_str() return a little endian EXIF
---
 .../fixed_reorientate_tests_for_big_endian_machines.patch     | 11 +++++++++++
 debian/patches/series                                         |  1 +
 2 files changed, 12 insertions(+)

diff --git a/debian/patches/fixed_reorientate_tests_for_big_endian_machines.patch b/debian/patches/fixed_reorientate_tests_for_big_endian_machines.patch
new file mode 100644
index 0000000..fa97db9
--- /dev/null
+++ b/debian/patches/fixed_reorientate_tests_for_big_endian_machines.patch
@@ -0,0 +1,11 @@
+--- a/tests/engines/test_base_engine.py
++++ b/tests/engines/test_base_engine.py
+@@ -27,7 +27,7 @@
+ 
+ 
+ def exif_str(x):
+-    return b'Exif\x00\x00II*\x00\x08\x00\x00\x00\x05\x00\x12\x01\x03\x00\x01\x00\x00\x00%s\x00\x00\x1a\x01\x05\x00\x01\x00\x00\x00J\x00\x00\x00\x1b\x01\x05\x00\x01\x00\x00\x00R\x00\x00\x00(\x01\x03\x00\x01\x00\x00\x00\x02\x00\x00\x00\x13\x02\x03\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00H\x00\x00\x00\x01\x00\x00\x00H\x00\x00\x00\x01\x00\x00\x00' % pack('h', x)  # noqa
++    return b'Exif\x00\x00II*\x00\x08\x00\x00\x00\x05\x00\x12\x01\x03\x00\x01\x00\x00\x00%s\x00\x00\x1a\x01\x05\x00\x01\x00\x00\x00J\x00\x00\x00\x1b\x01\x05\x00\x01\x00\x00\x00R\x00\x00\x00(\x01\x03\x00\x01\x00\x00\x00\x02\x00\x00\x00\x13\x02\x03\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00H\x00\x00\x00\x01\x00\x00\x00H\x00\x00\x00\x01\x00\x00\x00' % pack('<h', x)  # noqa
+ 
+ 
+ class BaseEngineTestCase(TestCase):
diff --git a/debian/patches/series b/debian/patches/series
index ac56f5b..9468446 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 Fix-default-FILE_LOADER_ROOT_PATH
 fix_convert_tif_to_png.patch
+fixed_reorientate_tests_for_big_endian_machines.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/thumbor.git



More information about the Python-modules-commits mailing list