pyo3/tests
Hood Chatham da5b9814cc
Set up CI for wasm32-emscripten target (#2436)
* ci: test on emscripten target

This adds CI to build libpython3.11 for wasm32-emscripten and
running tests against it. We need to patch instant to work
around the emscripten_get_now:
https://github.com/sebcrozet/instant/pull/47

We also have to patch emscripten to work aroung the "undefined
symbol gxx_personality_v0" error:
https://github.com/emscripten-core/emscripten/issues/17128

I set up a nox file to download and install emscripten,
download and build cpython, set appropriate environment variables
then run cargo test. The workflow just installs python, rust,
node, and nox and runs the nox session.

I xfailed all the test failures. There are problems with datetime.
iter_dict_nosegv and test_filenotfounderror should probably be
fixable. The tests that involve threads or asyncio probably can't
be fixed.

* Some cleanup

* Remove instant patch

* Add explanations for xfails
2022-06-08 05:59:18 +01:00
..
not_msrv pyo3-macros-backend: support macros inside doc attributes 2021-08-28 22:47:20 +01:00
ui macros: simpler expansion for `intern!` 2022-06-02 09:57:58 +01:00
common.rs Extend py_run! macro to take dict as *d syntax 2021-03-14 16:33:49 +09:00
test_anyhow.rs clippy: enable some more lints 2022-03-03 07:23:28 +00:00
test_append_to_inittab.rs Add macro append_to_inittab 2022-05-24 07:42:15 +01:00
test_arithmetics.rs Add more lints 2022-03-23 08:07:28 +01:00
test_arithmetics_protos.rs Add more lints 2022-03-23 08:07:28 +01:00
test_buffer.rs Add more lints 2022-03-23 08:07:28 +01:00
test_buffer_protocol.rs Add more lints 2022-03-23 08:07:28 +01:00
test_buffer_protocol_pyproto.rs Add more lints 2022-03-23 08:07:28 +01:00
test_bytes.rs Add more lints 2022-03-23 08:07:28 +01:00
test_class_attributes.rs Allow `#[classattr]` methods to be fallible 2022-05-17 21:19:41 +01:00
test_class_basics.rs Set up CI for wasm32-emscripten target (#2436) 2022-06-08 05:59:18 +01:00
test_class_conversion.rs Add more lints 2022-03-23 08:07:28 +01:00
test_class_new.rs dev: remove self dev dependency 2021-12-08 07:48:58 +00:00
test_compile_error.rs Set up CI for wasm32-emscripten target (#2436) 2022-06-08 05:59:18 +01:00
test_datetime.rs Add more lints 2022-03-23 08:07:28 +01:00
test_default_impls.rs fix some typos 2022-04-24 22:06:32 +08:00
test_dict_iter.rs Set up CI for wasm32-emscripten target (#2436) 2022-06-08 05:59:18 +01:00
test_enum.rs Finish implementation for pyclass enums 2022-02-07 22:17:11 +00:00
test_exceptions.rs Set up CI for wasm32-emscripten target (#2436) 2022-06-08 05:59:18 +01:00
test_frompyobject.rs frompyobject: improve error messages of derived impls 2022-06-02 11:13:35 +01:00
test_gc.rs cleanup: deprecate PyTypeObject trait 2022-04-23 13:36:32 +01:00
test_gc_pyproto.rs cleanup: deprecate PyTypeObject trait 2022-04-23 13:36:32 +01:00
test_getter_setter.rs Add more lints 2022-03-23 08:07:28 +01:00
test_inheritance.rs ffi: many fixes to pypy definitions 2022-06-04 12:47:40 +01:00
test_macros.rs dev: remove self dev dependency 2021-12-08 07:48:58 +00:00
test_mapping.rs pyclass: mapping flag 2022-04-02 16:15:44 +01:00
test_mapping_pyproto.rs Add more lints 2022-03-23 08:07:28 +01:00
test_methods.rs macros: fix raw-ident pyclasses having r# at the start of the Python name 2022-05-24 21:34:23 +01:00
test_module.rs Add more lints 2022-03-23 08:07:28 +01:00
test_multiple_pymethods.rs cleanup: deprecate PyTypeObject trait 2022-04-23 13:36:32 +01:00
test_mutable_pyclass.rs better mutability inheritance rules 2022-04-21 20:51:28 +01:00
test_not_msrv.rs dev: remove self dev dependency 2021-12-08 07:48:58 +00:00
test_pep_587.rs add regression test for PEP 587 2022-05-15 16:08:21 +01:00
test_proto_methods.rs Set up CI for wasm32-emscripten target (#2436) 2022-06-08 05:59:18 +01:00
test_pyfunction.rs Add more lints 2022-03-23 08:07:28 +01:00
test_pyproto.rs pyproto: deprecate protocol traits 2022-02-23 07:50:52 +00:00
test_pyself.rs Add more lints 2022-03-23 08:07:28 +01:00
test_sequence.rs Add more lints 2022-03-23 08:07:28 +01:00
test_sequence_pyproto.rs Add more lints 2022-03-23 08:07:28 +01:00
test_serde.rs Py/PyAny: remove PartialEq impl and add is() (#2183) 2022-02-25 19:39:45 +00:00
test_string.rs dev: remove self dev dependency 2021-12-08 07:48:58 +00:00
test_text_signature.rs Add more lints 2022-03-23 08:07:28 +01:00
test_unsendable_dict.rs dev: remove self dev dependency 2021-12-08 07:48:58 +00:00
test_variable_arguments.rs dev: remove self dev dependency 2021-12-08 07:48:58 +00:00
test_various.rs Add more lints 2022-03-23 08:07:28 +01:00
test_wrap_pyfunction_deduction.rs Add more lints 2022-03-23 08:07:28 +01:00