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

pywbem / nocaselist / 215
96%

Build:
DEFAULT BRANCH: master
Ran 11 Sep 2020 08:01PM UTC
Jobs 3
Files 3
Run time 42s
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
215

push

travis-ci

andy-maier
Fixed AttribiteError when unpickling; Optimized pickling

Details:

* When unpickling an object of NocaseList, an AttributeError is raised
  in extend(), stating that _lc_list is missing. Adding debug prints
  reveals that pickle.load() calls extend() on a NocaseList object
  that has not been initialized with __init__().

  This change mitigates that by handling the exception in extend()
  and setting _lc_list freshly.

* This change also adds __setstate__() and __getstate__() methods
  that optimize the serialized data by only having the original
  list serialized. For unknown reasons, pickle does not call
  __setstate__() on Python 2 for the NocaseList class. Therefore,
  the __getstate__() and __setstate__() methods are deleted when
  running on Python 2, unless the documentation is built.

Signed-off-by: Andreas Maier <andreas.r.maier@gmx.de>

149 of 149 relevant lines covered (100.0%)

2.85 hits per line

Jobs
ID Job ID Ran Files Coverage
2 215.2 (PACKAGE_LEVEL=latest) 11 Sep 2020 08:01PM UTC 0
95.3
Travis Job 215.2
3 215.3 (PACKAGE_LEVEL=latest) 11 Sep 2020 08:02PM UTC 0
94.63
Travis Job 215.3
5 215.5 (PACKAGE_LEVEL=latest) 11 Sep 2020 08:02PM UTC 0
94.63
Travis Job 215.5
Source Files on build 215
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #215
  • c317f5d3 on github
  • Prev Build on master (#202)
  • Next Build on master (#218)
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