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

sybrenstuvel / flickrapi / 17
71%

Build:
DEFAULT BRANCH: master
Ran 15 Jan 2017 12:37PM UTC
Jobs 1
Files 12
Run time 1s
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

pending completion
17

push

travis-ci

sybrenstuvel
Put requests in a session to benefit from connection reuse

http://docs.python-requests.org/en/master/user/advanced/#session-objects
- Remove Connection: close, urllib3 will handle that
- Add class property session <= request.Session()
- And of course, request using this session when possible (still using request for fake headers creation, no method available in request.session to do that : https://github.com/kennethreitz/requests/blob/master/requests/sessions.py#L411)

Some numbers :
* without reuse : 0m58s for 32,4 Mo ; 8m00s for 287,4 Mo
* with reuse : 0m42s for 32,4 Mo ; 0m51s for 32,4 Mo ; 5m53s for 287,4 Mo
# Conflicts:
#	flickrapi/auth.py

608 of 909 relevant lines covered (66.89%)

0.67 hits per line

Jobs
ID Job ID Ran Files Coverage
4 17.4 (TOXENV=py35) 15 Jan 2017 12:37PM UTC 0
66.89
Travis Job 17.4
Source Files on build 17
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #17
  • cdeb6ffe on github
  • Prev Build on master (#16)
  • Next Build on master (#18)
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