Fixed some errors from `Travis CI`

- Removed offending blank line.
- Avoid `mock.proxy` propagation when no --proxy option is given.
- Changed reference of `urlparse` from `pip._vendor.six` to
  `pip.compat.urlparse`.