Skip to content

pathlib tests: move walk() tests into their own classes#126651

Merged
gpshead merged 3 commits into
python:mainfrom
barneygale:pathlib-walk-tests-split
Nov 24, 2024
Merged

pathlib tests: move walk() tests into their own classes#126651
gpshead merged 3 commits into
python:mainfrom
barneygale:pathlib-walk-tests-split

Conversation

@barneygale

Copy link
Copy Markdown
Contributor

Move tests for Path.walk() into a new PathWalkTest class, and apply a similar change in tests for the ABCs. This allows us to properly tear down the walk test hierarchy in tearDown(), rather than leaving it to os_helper.rmtree().

This PR has two initial commits: the first commit re-orders test methods in order to make the second commit diff more readable.

@gpshead gpshead merged commit 4ea7127 into python:main Nov 24, 2024
ebonnal pushed a commit to ebonnal/cpython that referenced this pull request Jan 12, 2025
…26651)

Move tests for Path.walk() into a new PathWalkTest class, and apply a similar change in tests for the ABCs. This allows us to properly tear down the walk test hierarchy in tearDown(), rather than leaving it to os_helper.rmtree().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants