From de2adc53771f8d73d4b9d7c9529037e187f71678 Mon Sep 17 00:00:00 2001 From: Piotr Bielak Date: Mon, 30 Jul 2018 16:38:59 +0200 Subject: [PATCH] Fixed "pip-install" test The "pip-install" tox environment was failing, because the name of the "ConfigParser" package was changed into "configparser". This commit fixes that by using the six.moves module to do the right thing on py2 and py3 Change-Id: I6b16c8f0e182850cda041ca294edc5ad04c1a3c3 --- tools/check-install.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/check-install.py b/tools/check-install.py index d638c5f03c..c7f028236b 100644 --- a/tools/check-install.py +++ b/tools/check-install.py @@ -2,16 +2,17 @@ from __future__ import print_function -import ConfigParser import importlib import re import sys +import six.moves.configparser as configparser + def main(): errors = 0 pattern = re.compile('^(.*?)\s*=\s*([^:]*?):.*$') - config = ConfigParser.ConfigParser() + config = configparser.ConfigParser() config.read('setup.cfg') console_scripts = config.get('entry_points', 'console_scripts') for script in console_scripts.split('\n'):