11 Commits

Author SHA1 Message Date
Daniel Chiquito
5ee5531f32 Properly unload modules between tests (#5192)
There seems to have been a bug in the libregrtest code which unloaded
modules between tests. The previous state was calculated using
`sys.modules.keys()`, which is actually a mutable object that is updated
as the underlying `sys.modules` is updated. The result was that modules
were not unloaded between tests, which is the root cause for
`test_unittest` failing when run after `test_import` and
`test_importlib`.

This code is copied from 3.12. Ideally all of `libregrtest` should
probably be updated as it seems wildly out of date, but that's a lot
more work.
2024-03-21 21:51:57 +09:00
Alexander Scharinger
18fab32c0a Fix: parallel execution of python unit tests 2022-02-05 13:16:08 +01:00
Dean Li
6f98288e84 test: use import_helper 2021-11-29 21:03:02 +08:00
Dean Li
5ee4fb899b test: use os_helper 2021-11-28 20:51:32 +08:00
Jeong YunWon
913b78ca44 Revert "Merge pull request #3433 from deantvv/test-update"
This reverts commit 9fa5c5ac66, reversing
changes made to e7fa32c687.
2021-11-17 17:06:51 +09:00
Dean Li
49a5805d11 test: use os_helper 2021-11-13 02:18:33 +00:00
Jeong YunWon
8e8efe0ec8 reform every TODO: RUSTPYTHON to same format 2020-06-17 18:47:13 +09:00
Aviv Palivoda
1e8ea10278 Allow CPython tests to run on Mac 2020-02-08 11:45:35 +02:00
Aviv Palivoda
8baaa5d508 Enable platform.platform 2020-02-06 21:53:31 +02:00
Aviv Palivoda
4c7c5fd225 Change test code to allow running 2019-12-30 21:31:36 +02:00
Aviv Palivoda
a157dc1230 Add regrtest from CPython 2019-12-30 21:31:36 +02:00