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
Refactorize tests to use Dataset as context manager #2191
Refactorize tests to use Dataset as context manager #2191
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks !
This makes things a bit harder to read sometimes but this is worth it since it makes the errors on windows way more readable.
Maybe in the future we could use pytest instead, and use a fixture that properly closes the datasets created during each test ?
This reverts commit 57e00a2.
I find very interesting that idea of using a fixture instead! Let me rework a little bit this PR, @lhoestq. |
@lhoestq, as this is a big refactoring, I had many problems to solve the conflicts with the master branch... Therefore, I think it is better to merge this as it is, and then to make other PRs with additional refactorings, before I get conflicts again with the master branch... |
There are still some conflicts that prevent merging. Also feel free to create another branch from |
@lhoestq, yes, the new conflicts appeared after today merge commits on master... I am definitely going to split this PR into smaller ones in order to avoid having to resolve many conflicts after each commit on master. There are lots of conflicts and these are painful to resolve. |
a506ed1
to
e183326
Compare
Refactorize Dataset tests to use Dataset as context manager.