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

pywbem / nocasedict / 56
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: stable_2.1
DEFAULT BRANCH: master
Ran 22 Jul 2020 07:03AM UTC
Jobs 1
Files 3
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
56

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.

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 56.3 (PACKAGE_LEVEL=latest) 22 Jul 2020 07:03AM UTC 0
97.04
Travis Job 56.3
Source Files on build 56
  • Tree
  • List 3
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #56
  • 46089433 on github
  • Prev Build on andy/reduce-ordereddict (#54)
  • Next Build on andy/reduce-ordereddict (#58)
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

© 2025 Coveralls, Inc