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

agronholm / anyio / 30152262441
94%

Build:
DEFAULT BRANCH: master
Ran 25 Jul 2026 09:08AM UTC
Jobs 1
Files 43
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

25 Jul 2026 09:06AM UTC coverage: 93.371% (-0.007%) from 93.378%
30152262441

push

github

web-flow
Fixed Path.with_stem() not validating an empty stem (#1200)

anyio.Path.with_stem() reimplemented the operation as with_name(stem + self.suffix) instead of delegating to
pathlib's own with_stem(). For a path with a non-empty suffix, an empty stem therefore produced a silently wrong path
(e.g. Path("foo.txt").with_stem("") -> Path(".txt")) rather than raising ValueError like pathlib.PurePath.with_stem() does.

The sibling wrappers with_name() and with_suffix() already delegate to self._path; with_stem() now does the same, restoring parity with pathlib for every input (empty-stem-with-suffix now raises, all other cases are byte-identical to before).

---------

Co-authored-by: Alex Grönholm <alex.gronholm@nextday.fi>
Co-authored-by: Tobias Petersen <tobias.alex.petersen@gmail.com>
Co-authored-by: NIYONSHUTI Emmanuel <nemmy0257@gmail.com>

9 of 10 new or added lines in 1 file covered. (90.0%)

6620 of 7090 relevant lines covered (93.37%)

11.94 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
96.55
-0.2% src/anyio/_core/_fileio.py
Jobs
ID Job ID Ran Files Coverage
1 30152262441.1 25 Jul 2026 09:08AM UTC 43
93.37
GitHub Action Run
Source Files on build 30152262441
  • Tree
  • List 43
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30152262441
  • 586e3cf4 on github
  • Prev Build on master (#30125900698)
  • Next Build on master (#30153625195)
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