man-group / pkglib

Company-centric Python packaging and testing library
39 stars 22 forks source link

Fixing unit tests on Travis. #39

Closed Wilfred closed 10 years ago

Wilfred commented 10 years ago

Travis does not use distribute, it uses a recent version of pip (1.5.1 at time of writing) and a recent version of setuptools. Recent setuptools imports urllib2 from setuptools.compat rather than importing directly.

Updating our call to mock.patch to work on both older distribute and recent setuptools.

Related to #36 and #37.

Wilfred commented 10 years ago

(please don't merge until Travis is happy!)

Wilfred commented 10 years ago

Argh, I can't reproduce this on my work machine. I'll try at home later.

Wilfred commented 10 years ago

I'm going to close this PR and open a new one once I've got things in order.