You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
1.1.1: test_table_aggregate expects no warning from external packages (and now fails with numpy) #4549
After upgrading to numpy 1.11.0 beta 2, I got the following test failures:
_________________________ test_table_aggregate[False] __________________________
[...]
with catch_warnings(Warning) as warning_lines:
tga = tg.groups.aggregate(np.sum)
> assert warning_lines[0].category == UserWarning
E assert <type 'exceptions.FutureWarning'> == UserWarning
E + where <type 'exceptions.FutureWarning'> = <type 'exceptions.FutureWarning'>
E + where <type 'exceptions.FutureWarning'> = <warnings.WarningMessage object at 0x7fe2c268f7d0>.category
/usr/lib/python2.7/dist-packages/astropy/table/tests/test_groups.py:412: AssertionError
This happens four times (twice with False, and twice with True). The FutureWarning is probably one of numpy's warnings that the behaviour of slices will change in future. Full test log here.
It works with numpy 1.11, so in principle it may be closed. I am just not sure whether it is a good idea at all to check that there is no warning. In the specific case, I think that the numpy warning was wrong, it was more an information.
Yes, perhaps the test is written too naively, expecting that none of the downstream code will be producing warnings randomly. It should be checking that no warnings are produced by the aggregate code. This is a bit trickier of course...
Hi humans 👋 - this issue was labeled as Close? approximately 1 year, 3 months ago. So..... any news? 🗞️
If you think this issue should not be closed, a maintainer should remove the Close? label - otherwise, I'm just gonna have to close this issue in a month. Your time starts now! Tick tock 🕙
If you believe I commented on this issue incorrectly, please report this here
I'm going to close this issue as per my previous message. But if you feel that we should really really keep this open, then feel free to re-open and remove the Close? label. But no one has done anything for 6 months, so... Just sayin!
If this is the first time I am commenting on this issue, or if you believe I closed this issue incorrectly, please report this here
Activity
astrofrog commentedon Jun 12, 2016
@olebole - can you check if this is still an issue? I think it should be fixed with the final Numpy 1.11?
olebole commentedon Jun 12, 2016
It works with numpy 1.11, so in principle it may be closed. I am just not sure whether it is a good idea at all to check that there is no warning. In the specific case, I think that the numpy warning was wrong, it was more an information.
pllim commentedon Jun 29, 2016
Looks like @taldcroft last touched that test...
taldcroft commentedon Jun 29, 2016
Yes, perhaps the test is written too naively, expecting that none of the downstream code will be producing warnings randomly. It should be checking that no warnings are produced by the aggregate code. This is a bit trickier of course...
astropy-bot commentedon Sep 26, 2017
Hi humans 👋 - this issue was labeled as Close? approximately 1 year, 3 months ago. So..... any news? 🗞️
If you think this issue should not be closed, a maintainer should remove the Close? label - otherwise, I'm just gonna have to close this issue in a month. Your time starts now! Tick tock 🕙
If you believe I commented on this issue incorrectly, please report this here
astropy-bot commentedon Nov 21, 2017
⏰ Time's up! ⏰
I'm going to close this issue as per my previous message. But if you feel that we should really really keep this open, then feel free to re-open and remove the Close? label. But no one has done anything for 6 months, so... Just sayin!
If this is the first time I am commenting on this issue, or if you believe I closed this issue incorrectly, please report this here