Browse Source

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
changes/04/587304/2
Piotr Bielak 9 months ago
parent
commit
de2adc5377
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      tools/check-install.py

+ 3
- 2
tools/check-install.py View File

@@ -2,16 +2,17 @@
2 2
 
3 3
 from __future__ import print_function
4 4
 
5
-import ConfigParser
6 5
 import importlib
7 6
 import re
8 7
 import sys
9 8
 
9
+import six.moves.configparser as configparser
10
+
10 11
 
11 12
 def main():
12 13
     errors = 0
13 14
     pattern = re.compile('^(.*?)\s*=\s*([^:]*?):.*$')
14
-    config = ConfigParser.ConfigParser()
15
+    config = configparser.ConfigParser()
15 16
     config.read('setup.cfg')
16 17
     console_scripts = config.get('entry_points', 'console_scripts')
17 18
     for script in console_scripts.split('\n'):

Loading…
Cancel
Save