Advertisement
Guest User

Untitled

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