fix: class Python26CompatTestCase broken by minor python versions
fix: class Python26CompatTestCase broken by minor python versions

Extract the version of Python interpreter using the `sys.version` will
break the Python26CompatTestCase class when the Python version is 3.11.

Rather the correct way to compare the Python version is using the
`sys.version_info` or the `platform` module as suggested in Python
official doc, https://docs.python.org/3/library/sys.html#sys.version.

Signed-off-by: Wen Liang <5ee3357fb455f67019b3676c8968488c41307286@gmail.com>

linux-system-roles/network,linux-system-roles/network,linux-system-roles/network