|
30 | 30 | 'test_kqueue', |
31 | 31 | 'test_poll', |
32 | 32 | } |
33 | | -NEED_SSL = { |
34 | | - 'test_smtpnet', |
35 | | - 'test_ssl', |
36 | | -} |
37 | 33 | NEED_TESTMULTIPHASE = { |
38 | 34 | # Lib/test/test_importlib/util.py requires _testmultiphase |
39 | 35 | 'test_compileall', |
|
194 | 190 | if sys.platform in ("win32", "cygwin"): |
195 | 191 | EXPECTED_SKIP.add('test_multiprocessing_forkserver') |
196 | 192 |
|
197 | | -if support.is_android: |
198 | | - # Missing dependencies on Android |
199 | | - EXPECTED_SKIP |= { |
200 | | - 'test_curses', # need _curses |
201 | | - 'test_dbm_gnu', # need _gdbm |
202 | | - 'test_dbm_ndbm', # need _dbm |
203 | | - 'test_grp', # need grp |
204 | | - 'test_readline', # need libreadline/libedit |
205 | | - } |
206 | | - |
207 | | - # _multiprocessing is not available on Android |
208 | | - EXPECTED_SKIP |= NEED_MULTIPROCESSING |
209 | | - # _tkinter is not available on Android |
210 | | - EXPECTED_SKIP |= NEED_TKINTER |
211 | | -else: |
| 193 | +if not support.is_android: |
212 | 194 | # Test specific to Android |
213 | 195 | EXPECTED_SKIP.add('test_android') |
214 | 196 |
|
|
268 | 250 | 'test_selectors', |
269 | 251 | } |
270 | 252 |
|
271 | | - # Missing dependencies on Emscripten |
272 | | - EXPECTED_SKIP |= { |
273 | | - 'test_lzma', # need _lzma |
274 | | - 'test_zstd', # need _zstd |
275 | | - } |
276 | | - # Missing OpenSSL dependency on Emscripten |
277 | | - EXPECTED_SKIP |= NEED_SSL |
278 | | - # Missing Tcl/Tk dependency on Emscripten |
279 | | - EXPECTED_SKIP |= NEED_TKINTER |
280 | | - |
281 | 253 |
|
282 | 254 | if support.is_android or support.is_apple_mobile or support.is_wasm32 or IS_WASI: |
283 | 255 | EXPECTED_SKIP |= { |
|
320 | 292 | # Missing os.openpty() function on WASI |
321 | 293 | EXPECTED_SKIP.add('test_openpty') |
322 | 294 |
|
323 | | - # Missing dependencies on WASI |
324 | | - EXPECTED_SKIP |= { |
325 | | - 'test_bz2', # need _bz2 |
326 | | - 'test_ctypes', # need _ctypes |
327 | | - 'test_dbm_sqlite3', # need _sqlite3 |
328 | | - 'test_gzip', # need zlib |
329 | | - 'test_lzma', # need _lzma |
330 | | - 'test_readline', # need libreadline/libedit |
331 | | - 'test_sqlite3', # need _sqlite3 |
332 | | - 'test_stable_abi_ctypes', # need _ctypes |
333 | | - 'test_zlib', # need zlib |
334 | | - 'test_zstd', # need _zstd |
335 | | - } |
336 | | - # Missing OpenSSL dependency on WASI |
337 | | - EXPECTED_SKIP |= NEED_SSL |
338 | | - # Missing Tcl/Tk dependency on WASI |
339 | | - EXPECTED_SKIP |= NEED_TKINTER |
340 | | - |
341 | 295 |
|
342 | 296 | def expected_to_be_skipped(test_name): |
343 | 297 | # Test EXPECTED_SKIP |
|
0 commit comments