|
193 | 193 | if sys.platform in ("win32", "cygwin"): |
194 | 194 | EXPECTED_SKIP.add('test_multiprocessing_forkserver') |
195 | 195 |
|
196 | | -if not support.is_android: |
| 196 | +if support.is_android: |
| 197 | + # Test specific to Android |
197 | 198 | EXPECTED_SKIP.add('test_android') |
| 199 | +else: |
198 | 200 | # _multiprocessing is not available on Android |
199 | 201 | EXPECTED_SKIP |= NEED_MULTIPROCESSING |
200 | 202 | # _tkinter is not available on Android |
|
207 | 209 | # configure disables multiple extension modules on Apple mobile |
208 | 210 | EXPECTED_SKIP |= { |
209 | 211 | 'test_curses', # need _curses |
| 212 | + 'test_dbm_gnu', # need _gdbm |
210 | 213 | 'test_grp', # need grp |
| 214 | + 'test_pwd', # need pwd |
| 215 | + 'test_readline', # need readline |
211 | 216 | 'test_syslog', # need syslog |
212 | 217 | } |
213 | 218 | # configure disables _multiprocessing on Apple mobile |
|
222 | 227 | 'test__interpreters', # need _interpreters |
223 | 228 | 'test_crossinterp', # need _interpreters |
224 | 229 | 'test_curses', # need _curses |
| 230 | + 'test_dbm_gnu', # need _gdbm |
| 231 | + 'test_dbm_ndbm', # need _dbm |
225 | 232 | 'test_grp', # need grp |
226 | 233 | 'test_pwd', # need pwd |
| 234 | + 'test_readline', # need readline |
227 | 235 | 'test_resource', # need resource |
228 | 236 | 'test_syslog', # need syslog |
229 | 237 | } |
230 | 238 | # configure disables _multiprocessing on Emscripten |
231 | 239 | EXPECTED_SKIP |= NEED_MULTIPROCESSING |
| 240 | + |
| 241 | + # Missing os.openpty() function on Emscripten |
| 242 | + EXPECTED_SKIP.add('test_openpty') |
| 243 | + |
232 | 244 | EXPECTED_SKIP |= { |
233 | 245 | # Incompatible with Emscripten's mmap emulation |
234 | 246 | 'test_mmap', |
235 | 247 | # Cannot create socketpair on Emscripten/WASI |
236 | 248 | 'test_selectors', |
237 | 249 | } |
| 250 | + |
| 251 | + # Missing dependencies on Emscripten |
| 252 | + EXPECTED_SKIP |= { |
| 253 | + 'test_lzma', # need _lzma |
| 254 | + 'test_zstd', # need _zstd |
| 255 | + } |
238 | 256 | # Missing OpenSSL dependency on Emscripten |
239 | 257 | EXPECTED_SKIP |= NEED_SSL |
240 | 258 | # Missing Tcl/Tk dependency on Emscripten |
|
249 | 267 | } |
250 | 268 |
|
251 | 269 | if IS_WASI: |
| 270 | + # configure disables multiple extension modules on WASI |
252 | 271 | EXPECTED_SKIP |= { |
253 | | - # configure disables multiple extension modules on WASI |
254 | 272 | 'test__interpchannels', # need _interpchannels |
255 | 273 | 'test__interpreters', # need _interpreters |
256 | 274 | 'test_crossinterp', # need _interpreters |
257 | 275 | 'test_curses', # need _curses |
| 276 | + 'test_dbm_gnu', # need _gdbm |
| 277 | + 'test_dbm_ndbm', # need _dbm |
258 | 278 | 'test_external_inspection', # need _remote_debugging |
259 | 279 | 'test_fcntl', # need fcntl |
260 | 280 | 'test_gc_stats', # need _remote_debugging |
|
269 | 289 | 'test_termios', # need termios |
270 | 290 | 'test_tty', # need termios |
271 | 291 | 'test_xxlimited', # need xxlimited |
| 292 | + } |
| 293 | + # configure disables _multiprocessing and _testmultiphase |
| 294 | + # extension modules on WASI |
| 295 | + EXPECTED_SKIP |= NEED_MULTIPROCESSING |
| 296 | + EXPECTED_SKIP |= NEED_TESTMULTIPHASE |
272 | 297 |
|
273 | | - # Missing functions on WASI |
274 | | - 'test_openpty', # need os.openpty() |
| 298 | + # Missing os.openpty() function on WASI |
| 299 | + EXPECTED_SKIP.add('test_openpty') |
275 | 300 |
|
276 | | - # Missing dependencies on WASI |
| 301 | + # Missing dependencies on WASI |
| 302 | + EXPECTED_SKIP |= { |
277 | 303 | 'test_bz2', # need _bz2 |
278 | 304 | 'test_ctypes', # need _ctypes |
279 | 305 | 'test_dbm_sqlite3', # need _sqlite3 |
280 | 306 | 'test_gzip', # need zlib |
281 | 307 | 'test_lzma', # need _lzma |
| 308 | + 'test_readline', # need libreadline/libedit |
282 | 309 | 'test_sqlite3', # need _sqlite3 |
283 | 310 | 'test_stable_abi_ctypes', # need _ctypes |
284 | 311 | 'test_zlib', # need zlib |
285 | 312 | 'test_zstd', # need _zstd |
286 | 313 | } |
287 | | - # configure disables _multiprocessing and _testmultiphase |
288 | | - # extension modules on WASI |
289 | | - EXPECTED_SKIP |= NEED_MULTIPROCESSING |
290 | | - EXPECTED_SKIP |= NEED_TESTMULTIPHASE |
291 | 314 | # Missing OpenSSL dependency on WASI |
292 | 315 | EXPECTED_SKIP |= NEED_SSL |
293 | 316 | # Missing Tcl/Tk dependency on WASI |
294 | 317 | EXPECTED_SKIP |= NEED_TKINTER |
295 | | - # Missing libreadline/libedit dependency on Emscripten |
296 | | - EXPECTED_SKIP.add('readline') |
297 | 318 |
|
298 | 319 |
|
299 | 320 | def expected_to_be_skipped(test_name): |
|
0 commit comments