From e3f8395293625cb30d4a3144d197f493eddae8a8 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Tue, 7 May 2013 23:55:48 +0200 Subject: [PATCH] Fix test hardcoded for little endian --- Tests/test_numpy.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tests/test_numpy.py b/Tests/test_numpy.py index 3253c2b5f..5f8097ef8 100644 --- a/Tests/test_numpy.py +++ b/Tests/test_numpy.py @@ -41,7 +41,10 @@ def test_numpy_to_image(): assert_exception(TypeError, lambda: to_image(numpy.uint64)) assert_image(to_image(numpy.int8), "I", (10, 10)) - assert_image(to_image(numpy.int16), "I;16", (10, 10)) + if Image._ENDIAN == '<': # Little endian + assert_image(to_image(numpy.int16), "I;16", (10, 10)) + else: + assert_image(to_image(numpy.int16), "I;16B", (10, 10)) assert_image(to_image(numpy.int32), "I", (10, 10)) assert_exception(TypeError, lambda: to_image(numpy.int64))