Skip to content

1.1.1: test_table_aggregate expects no warning from external packages (and now fails with numpy) #4549

Closed

Description

@olebole

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.

Activity

  1. astrofrog commented on Jun 12, 2016

    @astrofrog
    Member

    @olebole - can you check if this is still an issue? I think it should be fixed with the final Numpy 1.11?

  2. added
    Close?
    on Jun 12, 2016
  3. olebole commented on Jun 12, 2016

    @olebole
    MemberAuthor

    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.

  4. pllim commented on Jun 29, 2016

    @pllim
    Member

    Looks like @taldcroft last touched that test...

  5. taldcroft commented on Jun 29, 2016

    @taldcroft
    Member

    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...

  6. deleted a comment from astrobot on Sep 20, 2017
  7. astropy-bot commented on Sep 26, 2017

    @astropy-bot

    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

  8. astropy-bot commented on Nov 21, 2017

    @astropy-bot

    ⏰ 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

  9. added
    closed-by-bot
    on Nov 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Close?closed-by-bottabletesting

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions