Search code examples
pythonpython-3.4travis-cinosehttpretty

HTTPretty test hanging on Travis


While making python-intercom Python 3 compatible, I ran into an issue on Travis.

The nosetests command doesn't appear to exit when run on Python 3.4 (it behaves as expected on Python 2.7). I narrowed it down to tests that use HTTPretty and created a small project to highlight the issue, and to publish the results of a failed build:

$ nosetests
..
----------------------------------------------------------------------
Ran 2 tests in 0.061s
OK

No output has been received in the last 10 minutes, this potentially
indicates a stalled build or something wrong with the build itself.

The build has been terminated

Right now I don't know how to proceed.


Solution

  • It seems to be an issue with the latest release of httppretty in Python 3.4. I had the same problem and then I downgraded it to 0.8.6. It seems to be because of some Warning being raised described in this github issue.