Update `uu.py` and `test_uu.py` from CPython v3.12.0
Pass more unit tests in test_uu.py
Usually, the commits that have anything to do with RustPython are separated from the commits that contain changes made in CPython by CPython developers.
One of the failing test is test.test_importlib.builtin.test_loader.Frozen_LoaderTests.test_module.
No idea how the change is related to the failing test yet.
@kingiler is this intended to be closed or accident?
@youknowone It was an accident. I messed up with the git force push commit before.
Now I found the potential cause for the issue. Comment out introducing of warnings._deprecated(__name__, remove=(3, 13)) in uu.py would pass the test_importlib test.
@youknowone I have a strange issue that this PR does not sync with my branch at https://github.com/kingiler/RustPython/tree/update_uu, do you know what is happening here?
it happens sometimes when you pushed it during parts of github is out of service. you can edit the last commit by git commit --amend without any actual change to generate a new commit id and push force to update it.
If removing deprecated warning fix importlib problem, it will be the best.
uu will be removed in 3.13. Probably not worth to spend too much effort though.
I somehow debug that the issue comes from email library importing the deprecated uu library. This PR may have to wait until email is updated.
@youknowone should we closed this PR and make a notice on update list that uu is deprecated in 3.13?
@kingiler I'd like to merge it if it is easy to fix. Otherwise let it just be removed later.