-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Remove unused array_compare tests #515
Conversation
It's possible to fix this though, we fixed it in pytest-mpl and I need to copy over the fixes to pytest-arraydiff |
@astrofrog Great! Let me know when there's a new |
@larrybradley - could you try the latest dev version of pytest-arraydiff? Just merged a PR fixing this. Thanks! |
784b3f0
to
33ed019
Compare
@astrofrog I've updated this PR to use |
510cec7
to
1bd78df
Compare
1bd78df
to
ea5d52e
Compare
regions/shapes/tests/test_masks.py
Outdated
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.
Did this used to work as intended in older pytest?
I look at https://github.com/astropy/pytest-arraydiff/blob/main/tests/test_pytest_arraydiff.py and none of the tests are stack with parametrize. And reference_dir
is explicitly provided there.
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.
According to the README file (https://github.com/astropy/pytest-arraydiff#using), reference
is the default directory name.
533872b
to
dc2b03d
Compare
dc2b03d
to
0d1bb32
Compare
The Also, now if I do not add the |
@larrybradley , does that mean pytest-arraydiff is working as expected or there is something else to be fixed? Hope you can clarify. Thanks! |
It seems |
This PR should be ready to go, but the ( |
|
Well, tox is supposedly isolated and whatever, so maybe you do need to explicitly point to the reference path even though it is supposedly the default location. |
@astrofrog -- Any idea why |
045790c
to
fa7dddd
Compare
I fixed the issue -- there was a typo in |
In pytest >7.2 test functions can only return
None
.Followup to #480