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

pywbem / nocasedict / 66
97%

Build:
DEFAULT BRANCH: master
Ran 22 Jul 2020 03:42PM UTC
Jobs 1
Files 3
Run time 2min
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
66

push

travis-ci

andy-maier
Use dict on py>=3.7; Improved exceptions, and mapping vs iterable

Details:

* Starting with Python 3.7, the standard dict is guaranteed to be
  ordered on all Python implementations. Therefore, there is no
  reason to use OrderedDict anymore on py>=3.7, and the standard
  dict is faster. This change uses dict on py>=3.7 and otherwise
  OrderedDict for the implementation of NocaseDict.

* The issuing of message 'During handling of the above exception,
  another exception occurred' is now suppressed by setting
  exc.__cause__ = None. This works on both Python 2 and 3.

* Improved the detection of mapping vs iterable as the init
  argument by generalizing the type checking for mapping to
  be derived from (NocaseDict, Mapping, UserDict), and to expect
  an iterable otherwise, failing with TypeError when it cannot
  be iterated on.

* Exception messages have been cleaned up and improved, and in
  some cases re-raised with better message. No different
  exception types are raised than before this change.

* Along with the new re.-raising of exceptions, it surfaced
  that some error cases had not been tested so far, mainly
  in the area of providing iterables of tuples (key, value)
  where the tuple items did not contain exactly two items.
  Added testcases to cover these error cases.

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

164 of 169 relevant lines covered (97.04%)

0.97 hits per line

Jobs
ID Job ID Ran Files Coverage
3 66.3 (PACKAGE_LEVEL=latest) 22 Jul 2020 03:42PM UTC 0
97.04
Travis Job 66.3
Source Files on build 66
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #66
  • 844d173a on github
  • Prev Build on master (#39)
  • Next Build on master (#71)
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