Skip to content

pathlib tests: create walk() test hierarchy without using class under test #128338

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 4, 2025

Conversation

barneygale
Copy link
Contributor

In the tests for pathlib.Path.walk(), avoid using the path class under test (self.cls) in test setup. Instead we use os functions in test_pathlib, and direct manipulation of DummyPath internal data in test_pathlib_abc.

…er test

In the tests for `pathlib.Path.walk()`, avoid using the path class under
test (`self.cls`) in test setup. Instead we use `os` functions in
`test_pathlib`, and direct manipulation of `DummyPath` internal data in
`test_pathlib_abc`.
@barneygale barneygale enabled auto-merge (squash) January 4, 2025 15:37
@barneygale barneygale merged commit fd94c6a into python:main Jan 4, 2025
36 checks passed
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Jan 6, 2025
…er test (python#128338)

In the tests for `pathlib.Path.walk()`, avoid using the path class under
test (`self.cls`) in test setup. Instead we use `os` functions in
`test_pathlib`, and direct manipulation of `DummyPath` internal data in
`test_pathlib_abc`.
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Jan 8, 2025
…er test (python#128338)

In the tests for `pathlib.Path.walk()`, avoid using the path class under
test (`self.cls`) in test setup. Instead we use `os` functions in
`test_pathlib`, and direct manipulation of `DummyPath` internal data in
`test_pathlib_abc`.
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.

1 participant