From 1dab508cd451d2becde2129a74fed925838576bc Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 13 Nov 2018 18:02:31 -0800 Subject: [PATCH] [stable-2.7] Relax ansible-test python version checking. (cherry picked from commit d6cc3c41874b64e346639549fd18d8c41be0db8b) Co-authored-by: Matt Clay --- test/runner/versions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/runner/versions.py b/test/runner/versions.py index e2a5db87675..78e2fae4ad7 100755 --- a/test/runner/versions.py +++ b/test/runner/versions.py @@ -9,7 +9,7 @@ try: except ImportError: pip = None -print(sys.version) +print('.'.join(u'%s' % i for i in sys.version_info)) if pip: print('pip %s from %s' % (pip.__version__, os.path.dirname(pip.__file__)))