pyxdg-0.28 fails tests with python-3.12

Andrey G. Grozin A.G.Grozin at inp.nsk.su
Sat Oct 28 15:28:52 UTC 2023


The problem becomes clear. test_basedirectory.py contains the line

     from imp import reload

with python3.11, it generates a deprecation warning: the module imp is 
deprecated, and will be removed in python3.12. Now in python3.12 it *has* 
been removed. And, instead of a warning, we get a fatal error.

I need to read about replacing

from imp import <something>

by something supported.

Andrey


More information about the xdg mailing list