Skip to content

Use real stat result objects in tests#439

Merged
adamchainz merged 1 commit into
mainfrom
real_stat_objs
Nov 3, 2022
Merged

Use real stat result objects in tests#439
adamchainz merged 1 commit into
mainfrom
real_stat_objs

Conversation

@adamchainz

Copy link
Copy Markdown
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.

1 participant