Skip to content

Commit 836c653

Browse files
committed
Disabled image type check for non Q8 builds due to bug in ImageMagick.
1 parent 416e646 commit 836c653

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/Magick.NET.Tests/MagickImageTests/TheImportIndexedPixelsMethod.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,10 @@ public void ShouldImportPixelsFromUshortArray()
194194
using var image = new MagickImage();
195195
image.ImportIndexedPixels(2, 2, colors, data);
196196

197+
#if Q8
198+
// Due to a bug in ImageMagick 7.1.2-27 this check only works on Q8 builds.
197199
Assert.Equal(ColorType.Palette, image.ColorType);
200+
#endif
198201
Assert.Equal(ColorSpace.Gray, image.ColorSpace);
199202

200203
Assert.Equal(2U, image.Width);

0 commit comments

Comments
 (0)