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

rohanpm / kobo / 26
50%
master: 49%

Build:
Build:
LAST BUILD BRANCH: remove-auto-logout
DEFAULT BRANCH: master
Ran 29 Jun 2020 10:41PM UTC
Jobs 1
Files 109
Run time 15s
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
26

push

travis-ci

rohanpm
HubProxy: remove broken auto_logout feature

This class had an implementation of __del__ to automate a call
to logout when instances are finalized.  This is not a good idea
for a few reasons:

- there's no guarantee that __del__ is ever called, so if the logout
  here was important, this wouldn't be an appropriate way to ensure
  it happens

- __del__ is called at unpredictable times, as GC can be triggered
  anywhere, so doing non-trivial things such as HTTP requests is
  prone to bugs. Example: if GC starts while locks are held, the
  call to logout() itself may attempt to grab a lock which is
  already held, thus causing deadlock. This is known to happen
  with django Signal.lock when autotests are using the Django
  test client.

- it appears unimportant. The impact of logout() is to remove a
  session from the server, but the server obviously has to deal with
  expiring sessions with no explicit logout anyway.

If this feature is needed, it could be implemented by making HubProxy
a context manager which logs out during __exit__, but it is thought
to be not useful.

3056 of 6114 relevant lines covered (49.98%)

0.5 hits per line

Jobs
ID Job ID Ran Files Coverage
7 26.7 (TOXENV=py37-cov-travis) 29 Jun 2020 10:41PM UTC 0
49.98
Travis Job 26.7
Source Files on build 26
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #26
  • f379a5b8 on github
  • Next Build on remove-auto-logout (#27)
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