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

Use real stat result objects in tests #439

Merged
merged 1 commit into from
Nov 3, 2022
Merged

Use real stat result objects in tests #439

merged 1 commit into from
Nov 3, 2022

Conversation

adamchainz
Copy link
Collaborator

Split from #410. For type hints it’s easier to use real objects in tests, where possible. Since os.stat_result is a basic immutable tuple, it's easy to use, even if it is a bit verbose to construct.

@adamchainz adamchainz merged commit 3045a88 into main Nov 3, 2022
@adamchainz adamchainz deleted the real_stat_objs branch November 3, 2022 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant