summaryrefslogtreecommitdiffstats
path: root/python/run-python-tests
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-11-02 18:18:14 +0000
committerRichard W.M. Jones <rjones@redhat.com>2011-11-09 22:11:29 +0000
commit408c28f588adc884e9e0cb2358426a703f52d733 (patch)
tree56ceb71f9c7ada64bce5d12f26430723bea8899e /python/run-python-tests
parent23ec87984b9a204665e547fd9d2848e6cf51647a (diff)
downloadlibguestfs-408c28f588adc884e9e0cb2358426a703f52d733.tar.gz
libguestfs-408c28f588adc884e9e0cb2358426a703f52d733.tar.xz
libguestfs-408c28f588adc884e9e0cb2358426a703f52d733.zip
python: Correctly check for Python major/minor.
The manual for sys.version warns that you should not parse the string, which we were doing. It would have failed on python "2.10" or similar. Do it correctly using the sys.version_info struct instead. (cherry picked from commit 646142f5136da9cfe2b908703a822c53350f70e9)
Diffstat (limited to 'python/run-python-tests')
0 files changed, 0 insertions, 0 deletions