From c7fbfdc795caf82ace4845f56dc32a3f335dbfdb Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Mon, 30 Oct 2023 22:44:52 +1100 Subject: [PATCH] Removed test_open --- Tests/images/mode-l.dds | Bin 16512 -> 0 bytes Tests/images/mode-la.dds | Bin 32896 -> 0 bytes Tests/images/mode-la.png | Bin 1060 -> 0 bytes Tests/images/mode-rgb.dds | Bin 49280 -> 0 bytes Tests/images/mode-rgb.png | Bin 862 -> 0 bytes Tests/images/mode-rgba.dds | Bin 65664 -> 0 bytes Tests/images/mode-rgba.png | Bin 1302 -> 0 bytes Tests/images/{mode-l.png => rgb8.png} | Bin Tests/test_file_dds.py | 17 +---------------- 9 files changed, 1 insertion(+), 16 deletions(-) delete mode 100644 Tests/images/mode-l.dds delete mode 100644 Tests/images/mode-la.dds delete mode 100644 Tests/images/mode-la.png delete mode 100644 Tests/images/mode-rgb.dds delete mode 100644 Tests/images/mode-rgb.png delete mode 100644 Tests/images/mode-rgba.dds delete mode 100644 Tests/images/mode-rgba.png rename Tests/images/{mode-l.png => rgb8.png} (100%) diff --git a/Tests/images/mode-l.dds b/Tests/images/mode-l.dds deleted file mode 100644 index b82282587ec30665fceafced278f1c59b3402ed1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16512 zcmeH}-EHGA5QLRH-P>I{2-3o};0}Uxa}TK}#ia!we>Mbmxid@IFa*O(Adcw~@eMx; zf=;LR*MHl#{rikdie4wCtD@J5$rZg$Odd=pyeTl@O@Rr&tAImS3LLsp;L!Id0QjK*;D-W$ zUsiB1AL2y-+`b5a+g}qv@T~yBw*myeRN!Df#TNl|`$YiV{(^u9=Lg$A2l~GQ{ow&5 zpBqU3+`zrxe;YskeE#v{zyA5p51_m@(gG!?cVO_^Sz~$wl>F9wR-n}<1zJu7v^@NP z24p2HAUP}$lKTZm^U(>6`arZRRKVo%R5fre zR}Gw8HE{BUpFaA4SDyNS`QJWZP6L6%3Ic}}1b$%!MXwXnRnhCjXRluPu1rA*)aOis!0Q^t@@IwK>FDp2h5Ah-ZZeIkz?XL+S_*Q`6TLFS!DsV8L z;)?*f{UU&Fe?h>5^Mmbw1o}^b{_p^j&kdx1Zs6YUzl|S%KL7afU;q5)2T)!cX@Qc{ zJ1}_dtTDX-N`7lTE70nb0xc&3S{{Bt1F{kpkQ^2W$^C+(`RD{jeIQ`uK)}f3FOCAW z$Z4Q*r-91D$yC6smsv0<#s|HT48aVmFPj7v|D_{D6`BNV-r-8s>1%bl~ z0>7|=qSuM(s_1oMaz(EblLylYZwgF!Q((gHD&WwS0*9^?IP^UV0DdR{_@MycmlYh$ zhjsv0<#s|HT4 t8aVmFPf`J1DHUKY6=0r08b||aAPuB}G>`_;KpIE`X&?=xfi!T4f&Vw%wVD6` diff --git a/Tests/images/mode-la.dds b/Tests/images/mode-la.dds deleted file mode 100644 index 30bf93576fd17f80397a1a016c3ee2306e4bf28a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 32896 zcmeI4;f>T#420j&0MG%V1zNZc5Z&;DdMJ(-j@^xtFtTUtJV%OdaU|H-`0+4X(6pEBpi3mQLUN zhAVA5p%B0!$UPjuA;|dw9Djv6iQ(a(_u$>I1Ojy6clnLvvWhAUCVm}G%is+ZHu896>c61SC68$csOrpOQNl+^8 zJtZg=cfSOs;_k2AQNU1G`clA9So{<)6l&b7JH(^~&%jUNQoik;evw#x!ROi zq3`pbTr({T)*H&H70aUD|CJNy-#_6Imjze<{;7TgzW@DKCa}DDa=}tu{POEfinTX? zb<;2RP!+ZuVEt!g0Fef~lfiTo-0z~AB=^@93cU%shYJiz?KiL{q5Ws5 z8>+dGpL4Ya?ey1*vMd$_D29ehEs&-Cw(-fT6JTrGTNZ_$gp0 z)VNo7h)D~cfuF*qgfYS;%Yre&CCh?!hx4B)Oj^|Za=oE=_5SH%lR^j>6v)G!66a6; z-I>IsWdU9&rx0aP^H(N77n>Bq1qTIkwJEVe-{(KMW?B}kH^rdg<&vqm`|Ee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!8k8UkfEI_-G-K+HDApLk{EDLKzD_S74+x97yA+1Na%v zDU%Ns7&*XCV7DAaMJ26y(ZC4&_fIWQ^{b-#0w?djs_jL?FY`0D)5Xo0ufmXtlL&R32(v(2H%RBm;?X;}AWrKSIt?;hNmC?13r(%HW{ zzcU(c!2k@v01UtY48Q;kzyJ)u01UtY48Q;kzyJ)u01UtY48Q;kzyJ)u01UtY48Q;k azyJ)u01UtY48Q;kzyJ)u01Uvuyn%m65T+~u diff --git a/Tests/images/mode-rgb.png b/Tests/images/mode-rgb.png deleted file mode 100644 index d0de36d82a9d9b082ec3fd255fc42886698c2649..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 862 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H1SEZ8zRh7^U{>{XaSW-L^LF;dpfv^ptmZ%e z*B@gKbQCh1OPc~>jD zxZRUqi&<5!Jo6X7W>+5ak4dX8T`%&`UAI&54yRW#he$7YeKOv`@3$Ds|DO2_TNaw< z{N%P+u`et7`|K&KJ_X!d%l6H2%wMkG$^ByibCY62!m7Q;FNuHn^|B#>LqURxqm2P1 z$e}PJtNzp6eGS+B*;$+!4qlnQ`S_`q-jA55G^>NSrIU+aF*P@3_$rorfYoA2)R zdS;vN9sOR@uQ zero={vDNVP)GyDN!^DgVuiWb7lLz|m;oBGLRg8x}Gp-HRJoWv1@$c!C*BO(eGk*GP z`aQq+^Q@15Y7X4_{d?zMEvwIr-tx-F`cJ(RFPh08pz|nAJN5f%%k%6V+Z@hMzWctx zUGSjHGv*~5<8yERRonNBndfWYxi@w4z{pyupMK@`zkhXk`$erl(Y~zZ&(G=HukWXV zJqYnQI1GGB?SCJu=a&TqMsWN&J?-BhtHXfF0AyaE{M?&=?f5=3UaAU@F5Axu^z5AH z%q|x2+PFOA>#JTE3cgko-9Nk_A9MutdWXZKIf$h9}xaC2z;Q@GpCXd~g$#Yfqgp zMU-n#ohUz#{qK>19*$^R5y185`X0V_ZAJN4=8y73>MkJMakIRB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rfDX_BIzR{L03DzMbbt=f0Xjej=l~s{19ag1Iq(x4GQ@5G diff --git a/Tests/images/mode-rgba.png b/Tests/images/mode-rgba.png deleted file mode 100644 index 33b41a547265ca54a15197925df3adb7cd06ba71..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1302 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H1|$#LC7xzrV7cq*;uumf=k46P6Yp5?v^b`2 z(6nH+7PS^@e-QB|mEZVdQm(&3V(BwM`sVSKUc( zU2*1$O=ZLVH|eeWR=f`Wd$K-k-^$3fojkC^KXl^iV znEG?gJP_WhX*i1^+@VNJ>G#X{nlbUfK{}(ja&-)ef zYW3=WZw2z=`4kx^HM4o}Nhw%nG(1@V=A29V)V99;r1ZXbjC20myPc@*{^Z#yssv|{OvCWGewv(u1>znvZimUrr{a& zL!uMr#WH6sKd@n685hs%Z2$B*FV&@HDE8r!S55-~T!CRz+Q? z!F;a1-VGkx%Qu-%m^z;?iLL z@>Bek#|-^Qcjh$vhMteP2bnV!QfodlJT|#tq7x-$@{Re$Okk)l`^o+)+dq4Y$${{L zCo6C9FR=dWEc^DQ{EGK-*pVPAz@!{eZcp6 zwv_S`1|e|Rimd-pZ_)5tTzP62P|Hj+woIVG@c1RuKl`n@qhM$ z^Z%-~m+ttdUvaL;hS6%-=A*2$7p7Oa$FGsBT2}t$u=(K%`vWZ>ttWE#8YI^^*Y6Tc z>&bu7p4;-Tj)C#>`YRI+{(H%CepY>*ap4}nLP|~W2L~w+$@4GxFFRb`kde9JKL3J@ ze-nSrdM3Yez3tkIml)z%)t~>ZV|e;f{$+;$e~;r?R?15c+^%C#{%mQh4aC{Oi%b~T zH9WcVjakC~|EX2kwtxA5>3^@^<&)eZ;=lw7;W^FmweHJ*`yV*Zq-yEG_f8h8{eqiZE1bDFjf&7aXchi$yFZ~25_jL7h JS?83{1OPRAV5k59 diff --git a/Tests/images/mode-l.png b/Tests/images/rgb8.png similarity index 100% rename from Tests/images/mode-l.png rename to Tests/images/rgb8.png diff --git a/Tests/test_file_dds.py b/Tests/test_file_dds.py index def548a34c5..5d5872b2e4c 100644 --- a/Tests/test_file_dds.py +++ b/Tests/test_file_dds.py @@ -347,25 +347,10 @@ def test_save_unsupported_mode(tmp_path): im.save(out) -@pytest.mark.parametrize( - ("mode", "test_file"), - ( - ("L", "Tests/images/mode-l.dds"), - ("LA", "Tests/images/mode-la.dds"), - ("RGB", "Tests/images/mode-rgb.dds"), - ("RGBA", "Tests/images/mode-rgba.dds"), - ), -) -def test_open(mode, test_file): - with Image.open(test_file) as im: - assert im.mode == mode - assert_image_equal_tofile(im, test_file.replace(".dds", ".png")) - - def test_open_rgb8(): with Image.open("Tests/images/rgb8.dds") as im: assert im.mode == "L" - assert_image_equal_tofile(im, "Tests/images/mode-l.png") + assert_image_equal_tofile(im, "Tests/images/rgb8.png") @pytest.mark.parametrize(