@@ -180,6 +180,56 @@ def test_not_supported_ios_version(self) -> None:
180
180
w = Wheel ("simple-0.1-cp313-none-ios_15_1_arm64_iphoneos.whl" )
181
181
assert not w .supported (tags = tags )
182
182
183
+ def test_android (self ) -> None :
184
+ arm_old = compatibility_tags .get_supported (
185
+ "313" , platforms = ["android_21_arm64_v8a" ], impl = "cp"
186
+ )
187
+ arm_new = compatibility_tags .get_supported (
188
+ "313" , platforms = ["android_30_arm64_v8a" ], impl = "cp"
189
+ )
190
+ x86_old = compatibility_tags .get_supported (
191
+ "313" , platforms = ["android_21_x86_64" ], impl = "cp"
192
+ )
193
+ x86_new = compatibility_tags .get_supported (
194
+ "313" , platforms = ["android_30_x86_64" ], impl = "cp"
195
+ )
196
+
197
+ w = Wheel ("simple-0.1-cp313-none-android_21_arm64_v8a.whl" )
198
+ assert w .supported (arm_old )
199
+ assert w .supported (arm_new )
200
+ assert not w .supported (x86_old )
201
+ assert not w .supported (x86_new )
202
+
203
+ w = Wheel ("simple-0.1-cp313-none-android_22_arm64_v8a.whl" )
204
+ assert not w .supported (arm_old )
205
+ assert w .supported (arm_new )
206
+ assert not w .supported (x86_old )
207
+ assert not w .supported (x86_new )
208
+
209
+ w = Wheel ("simple-0.1-cp313-none-android_31_arm64_v8a.whl" )
210
+ assert not w .supported (arm_old )
211
+ assert not w .supported (arm_new )
212
+ assert not w .supported (x86_old )
213
+ assert not w .supported (x86_new )
214
+
215
+ w = Wheel ("simple-0.1-cp313-none-android_20_x86_64.whl" )
216
+ assert not w .supported (arm_old )
217
+ assert not w .supported (arm_new )
218
+ assert w .supported (x86_old )
219
+ assert w .supported (x86_new )
220
+
221
+ w = Wheel ("simple-0.1-cp313-none-android_30_x86_64.whl" )
222
+ assert not w .supported (arm_old )
223
+ assert not w .supported (arm_new )
224
+ assert not w .supported (x86_old )
225
+ assert w .supported (x86_new )
226
+
227
+ w = Wheel ("simple-0.1-cp313-none-android_31_x86_64.whl" )
228
+ assert not w .supported (arm_old )
229
+ assert not w .supported (arm_new )
230
+ assert not w .supported (x86_old )
231
+ assert not w .supported (x86_new )
232
+
183
233
def test_support_index_min (self ) -> None :
184
234
"""
185
235
Test results from `support_index_min`
0 commit comments