Merge lp:~psivaa/auto-upgrade-testing/bug1159671 into lp:~auto-upgrade-testing-dev/auto-upgrade-testing/trunk
Proposed by
Para Siva
Status: | Needs review |
---|---|
Proposed branch: | lp:~psivaa/auto-upgrade-testing/bug1159671 |
Merge into: | lp:~auto-upgrade-testing-dev/auto-upgrade-testing/trunk |
Diff against target: |
125 lines (+32/-18) 1 file modified
share/post_upgrade_tests/test_python_import.py (+32/-18) |
To merge this branch: | bzr merge lp:~psivaa/auto-upgrade-testing/bug1159671 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Para Siva (community) | Needs Resubmitting | ||
Paul Larson (community) | Needs Fixing | ||
Auto Upgrade Testing Developers | Pending | ||
Review via email: mp+155819@code.launchpad.net |
Description of the change
The change is to try and import all the possible modules from sys.path as specified in bug 1159671.
The main change is on rev 75. The next one is re: pep8 changes.
To post a comment you must log in.
82 - self.distpackages = '/usr/lib/ %s/dist- packages/ ' % self.default_ version tmp/%s. stderr' % os.path. basename( __file_ _)[:-3] ,'w')
83 - self.stderr = open('/
84 + self.distpackages = []
85 + for dist_path in sys.path:
86 + if 'dist-packages' in dist_path:
One of the goals here was to specifically pick up the python standard libraries. Restricting to dist-packages won't accomplish that unfortunately.
87 + if dist_path[ 0:dist_ path.find( 'dist-packages' ) + 13] \
I prefer to avoid magic numbers