Repository navigation
TST: adapt table representation tests to numpy 2 - #16433
Conversation
|
Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.
|
|
👋 Thank you for your draft pull request! Do you know that you can use |
c866449 to
5b5b962
Compare
|
|
||
|
|
||
| def test_representation_representation(): | ||
| @pytest.mark.parametrize( |
There was a problem hiding this comment.
note to reviewers: the diff is not minimal here because I started by refactoring as a parametrized test before I knew exactly how I was going to avoid duplication. In the end it's not necessary but I figure it doesn't hurt either, so I didn't undo it 🤷🏻♂️
There was a problem hiding this comment.
The refactored version is harder to read by human though. 🤔
There was a problem hiding this comment.
Well, happy to revert the non-essential part if requested.
There was a problem hiding this comment.
The refactor is OK. It is slightly less readable but I think that is outweighed by the benefit of having the tests separated so if one fails the rest still run.
|
Damn, sorry I missed that. I looked up your PR a couple times for other changes and didn't find them there so I just stopped doing it just assumed it only dealt with docstring tests. |
5b5b962 to
3ffdf7e
Compare
|
The |
|
@mhvk , how should we proceed? Please advise. Thanks! |
|
I think this one is still waiting for response from @mhvk . |
mhvk
left a comment
There was a problem hiding this comment.
Let's just get this in - it is a duplication of my PR, but it's handier to do it in small steps.
…433-on-v6.1.x Backport PR #16433 on branch v6.1.x (TST: adapt table representation tests to numpy 2)
Description
This pull request is to address part of #16423 (specifically table)
The first commit is shared with #16426 and #16427, so they can be merged in any order.