You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
713 B
14 lines
713 B
--- python-imaging-Pillow-d1c6db8/Tests/test_numpy.py 2013-04-19 02:11:52.000000000 +0200 |
|
+++ python-imaging-Pillow-d1c6db8/Tests/test_numpy.py 2013-05-07 23:50:38.425987793 +0200 |
|
@@ -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)) |
|
|
|
|