You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
Tests run with Lazy Imports broke in D84660225, which switches from using isolated mode. This led us to discover that several tests were breaking with Lazy Imports on when run in sequential mode (without the `-j` flag that indicates multiprocessing to the test runner).
___
Several of the changes made in D52812410 to test files (in order to work around Lazy Imports incompatibilities such as implicit imports) weren't added in D83595369.
This Diff adds the needed changes from there (discarding the ones that aren't needed and aren't preventative), as well as adding some changes here.
____
The categorization is as follows:
In D52812410 but not ported over to here since they didn't affect tests:
- `Lib/email/_header_value_parser.py`
- `Lib/test/test_doctest.py`
- `Lib/test/test___all__.py`
- `Lib/test/test_clinic.py`
In D52812410 and ported over to here since they seemed good from a safety perspective (even though they didn't affect tests):
- `Lib/test/libregrtest/utils.py`
- `Lib/test/test_capi/test_misc.py`
- `Lib/test/test_unittest/test_discovery.py`
In D52812410 and ported over to here since they affected tests:
- `Lib/test/support/__init__.py`
- `Lib/test/support/import_helper.py`
- `Lib/test/test_import/data/package2/submodule1.py`
- `Lib/test/test_import/__init__.py`
- `Lib/test/test_heapq.py`
- `Lib/test/test_pkg.py`
- `Lib/test/test_traceback.py`
Added to make new test failures pass:
- `Lib/test/test_asyncio/test_eager_task_factory.py`
- `Lib/test/test__interpreters.py`
- `Lib/test/test_builtin.py`
- `Lib/test/test_monitoring.py`
Reviewed By: itamaro
Differential Revision: D84747057
fbshipit-source-id: 3b143e045713ce1ffdf1739d288ee4f13c9b8dd4
0 commit comments