Skip to content

Commit

Permalink
debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
qwcode committed Jul 31, 2012
1 parent 6e10adf commit b6bc75c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pip/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,11 @@ def renames(old, new):
head, tail = os.path.split(old)
if head and tail:
try:
logger.notify("trying to remove: " +head)
os.removedirs(head)
logger.notify("succeeded removing: " +head)
except OSError:
logger.notify(str(os.listdir(head)))
pass


Expand Down
3 changes: 2 additions & 1 deletion tests/test_pip.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,8 @@ def assert_all_changes(start_state, end_state, expected_changes):
diff = diff_states(start_files, end_files, ignore=expected_changes)
if list(diff.values()) != [{}, {}, {}]:
raise TestFailure('Unexpected changes:\n' + '\n'.join(
[k + ': ' + ', '.join(v.keys()) for k, v in diff.items()]))
[k + ': ' + ', '.join(v.keys()) for k, v in diff.items()])
+ '\n\nstdout:\n' + end_state.stdout)

# Don't throw away this potentially useful information
return diff
Expand Down

0 comments on commit b6bc75c

Please sign in to comment.