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

xolox / python-deb-pkg-tools / 277
91%
master: 91%

Build:
Build:
LAST BUILD BRANCH: dev
DEFAULT BRANCH: master
Ran 19 Apr 2020 02:03PM UTC
Jobs 6
Files 16
Run time 3min
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
277

push

travis-ci

xolox
Quality boost for deb_pkg_tools.control module (#20)

The following two things were handled rather inconsistently up till now:

- String literals being byte strings on Python 2 versus Unicode strings
  on Python 3. Despite the funky coercion rules in Python 2 this can
  and does bite. I'm pretty sure the deb_pkg_tools.control module in
  deb-pkg-tools < 8.0 can be made to raise UnicodeError exceptions for
  calls that should have been handled gracefully...

- Case insensitivity was previously an implicit feature because
  the python-debian package provides it. I was half aware of this
  but minimized deb-pkg-tools depending on this behavior. Given
  that I've now implemented case insensitivity natively I felt
  this was the right time to make things more consistent.

The intention of this commit is to get rid of these inconsistencies.

Only tangentially related to the above I also implemented a minor
performance optimization: Previously normalize_control_field_name()
constructed a dictionary on each call, but the contents of the
dictionary was static, so this "wastefulness" amounted to nothing more
than laziness on my part 😇. I've now promoted this dictionary to a
module level variable (in the assumption that looking up a module
variable is cheaper than constructing a dictionary).

8 of 8 new or added lines in 1 file covered. (100.0%)

1545 of 1696 relevant lines covered (91.1%)

5.46 hits per line

Jobs
ID Job ID Ran Files Coverage
1 277.1 19 Apr 2020 02:04PM UTC 0
90.95
Travis Job 277.1
2 277.2 19 Apr 2020 02:03PM UTC 0
90.83
Travis Job 277.2
3 277.3 19 Apr 2020 02:04PM UTC 0
90.83
Travis Job 277.3
4 277.4 19 Apr 2020 02:03PM UTC 0
90.83
Travis Job 277.4
5 277.5 19 Apr 2020 02:03PM UTC 0
91.1
Travis Job 277.5
6 277.6 19 Apr 2020 02:07PM UTC 0
90.95
Travis Job 277.6
Source Files on build 277
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #277
  • 85c6cbde on github
  • Prev Build on dev (#276)
  • Next Build on dev (#278)
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