Skip to content
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

GH-110109: pathlib tests: store base directory as test class attribute #113221

Conversation

barneygale
Copy link
Contributor

@barneygale barneygale commented Dec 16, 2023

Store the test base directory as a class attribute named base rather than module constants named BASE.

The base directory is a local file path, and therefore not ideally suited to the pathlib ABC tests. In a future commit we'll change its value in test_pathlib_abc.py such that it points to a totally fictitious path, which will help to ensure we're not touching the local filesystem.

…tribute

Store the test base directory as a class attribute named `base` rather than
module constants named `BASE`.

The base directory is a local file path, and therefore not ideally suited
to the pathlib ABC tests. In a future commit we'll change its value in
`test_pathlib_abc.py` such that it points to a totally fictitious path.
@barneygale barneygale added tests Tests in the Lib/test dir skip news topic-pathlib labels Dec 16, 2023
@bedevere-app bedevere-app bot mentioned this pull request Dec 16, 2023
8 tasks
@barneygale barneygale marked this pull request as ready for review December 16, 2023 23:58
@barneygale barneygale merged commit 2f0ec7f into python:main Dec 17, 2023
31 checks passed
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
…tribute (python#113221)

Store the test base directory as a class attribute named `base` rather than
module constants named `BASE`.

The base directory is a local file path, and therefore not ideally suited
to the pathlib ABC tests. In a future commit we'll change its value in
`test_pathlib_abc.py` such that it points to a totally fictitious path, which 
will help to ensure we're not touching the local filesystem.
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
…tribute (python#113221)

Store the test base directory as a class attribute named `base` rather than
module constants named `BASE`.

The base directory is a local file path, and therefore not ideally suited
to the pathlib ABC tests. In a future commit we'll change its value in
`test_pathlib_abc.py` such that it points to a totally fictitious path, which 
will help to ensure we're not touching the local filesystem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir topic-pathlib
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant