• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

berkmancenter / mediacloud / 4521 / 4
59%
master: 70%

Build:
Build:
LAST BUILD BRANCH: release
DEFAULT BRANCH: master
Ran 14 Dec 2017 08:49PM UTC
Files 207
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Dec 2017 08:12PM UTC coverage: 40.589%. First build
MC_TEST_CHUNK=4

push

travis-ci

pypt
On "requests" exceptions, set response's body to the exception message

As per LWP::UserAgent's (from which we inherit our UserAgent class
design) philosophy, if the parameters are right, UserAgent should never
raise and instead always return a valid Response object. To see whether
the request has failed, one is expected to call is_success() method.

On "requests" failures (when "requests" crashes being unable to parse
something), we create a Response object for with the exception message
in its body.

Before, this was being done incorrectly. In this commit, we set the body
correctly (in a way that can later be read by response.raw.stream()) and
also test whether the exception message got returned in HTTP body.

5870 of 14462 relevant lines covered (40.59%)

408.34 hits per line

Source Files on job 4521.4 (MC_TEST_CHUNK=4)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 4521
  • Travis Job 4521.4
  • 52b161d8 on github
  • Next Job for MC_TEST_CHUNK=4 on fix_ua_error_http_body (#4529.4)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc