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

petl-developers / petl / 35547285936
92%

Build:
DEFAULT BRANCH: master
Ran 21 Sep 2026 12:21AM UTC
Jobs 1
Files 128
Run time 1min
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

21 Sep 2026 12:18AM UTC coverage: 92.12% (+0.02%) from 92.104%
35547285936

push

github

web-flow
Fix tuple formatting in DuplicateKeyError and FieldSelectionError (#718)

Formatting a `DuplicateKeyError` or `FieldSelectionError` with a tuple
currently treats that tuple as the formatting argument list. Empty and
multi-element tuples raise `TypeError` during `str(error)`; a
one-element tuple loses its tuple representation.

Wrap the value in a singleton tuple so `%r` formats the whole value.
This preserves scalar messages and existing exception attributes without
changing accepted field selectors. Add regression tests for both
exception classes and the public `valuecounter` / strict `lookupone`
paths, plus a changelog entry.

Related to #641. The argument usage documentation was already clarified
by #714; this addresses the remaining exception-formatting behavior.

## Validation

Windows / Python 3.12.14, based on master 9a0b844:

- New tests against the original source: 8 failed, 6 passed.
- Targeted errors/counting/lookups tests after the fix: 33 passed.
- `python -m pytest -p no:cacheprovider -q petl/test --tb=short`: 583
passed, 17 skipped, 5 warnings.
- Same full command on the original source: 569 passed, 17 skipped, 5
warnings.

Optional dependencies and the full tox/Python-version matrix were not
tested. The change retains Python 2.7-compatible syntax, but Python 2.7
was not run locally. All three uploaded files were compared with the
locally tested files and matched.

AI assistance was used to prepare and review this patch; the reported
tests were executed locally.

20 of 20 new or added lines in 2 files covered. (100.0%)

14320 of 15545 relevant lines covered (92.12%)

0.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 35547285936.1 21 Sep 2026 12:21AM UTC 128
92.12
GitHub Action Run
Source Files on build 35547285936
  • Tree
  • List 128
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 9bbcef49 on github
  • Prev Build on master (#35546796186)
  • Next Build on master (#35652692391)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc