testnode: Fix `ConfigParser` for Python >= 3.12
The legacy class SafeConfigParser was removed in Python 3.12. Thus we
use the new ConfigParser class, which has the same behavior in Python
3.
This removes compatibility with Python 2.
The legacy class SafeConfigParser was removed in Python 3.12. Thus we
use the new ConfigParser class, which has the same behavior in Python
3.
This removes compatibility with Python 2.