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
This commit is contained in:
parent
4fb7a7b669
commit
de2adc5377
@ -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'):
|
||||
|
Loading…
Reference in New Issue
Block a user