Michal Nasiadka 3c3c517958 tests: Replace imp with importlib.machinery
It's needed for Python3.12 support, because imp has been dropped [1].

Also shlex dropped s=None support [2].

[1]: https://docs.python.org/3/whatsnew/3.12.html
[2]: https://github.com/python/cpython/issues/94352

Change-Id: I23f37897ea08ac708f6df485f699122df647e552
2024-03-29 05:16:51 +00:00
..
2023-12-05 11:49:42 +01:00