Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -r 91199e87ad1a tests/deployment/test_bdist.py
- --- a/tests/deployment/test_bdist.py Mon Nov 24 11:30:31 2014 +0100
- +++ b/tests/deployment/test_bdist.py Wed Nov 26 16:11:04 2014 +0100
- @@ -34,7 +34,7 @@
- for member in distribution_archive.getmembers():
- # Strip the prefix from the relative filename so we're left with a
- # filename that matches the structure in the source code repository.
- - relative_path = re.sub(r'^\./lib/python\d\.\d/site-packages/', '', member.name)
- + relative_path = re.sub(r'.+-packages/', '', member.name)
- if relative_path == member.name:
- # If the substitution didn't happen then we're dealing with a file
- # outside of /site-packages/ which we currently don't care about.
- @@ -90,7 +90,7 @@
- assert subprocess.call([
- 'python', 'setup.py', 'bdist_dumb', '--format=tar',
- '--relative', '--dist-dir=%s' % dist_directory,
- - ], cwd=root_directory) == 0, \
- + ], cwd=root_directory, stdout=open(os.devnull, 'w'), stderr=open(os.devnull, 'w')) == 0, \
- "The command 'python setup.py bdist_dumb' failed?!"
- # Find the generated distribution archive.
- matched_distributions = glob.glob(os.path.join(dist_directory, '*.tar'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement