Skip to content
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

Test filter! deprecation function #24543

Closed
wants to merge 1 commit into from
Closed

Test filter! deprecation function #24543

wants to merge 1 commit into from

Conversation

kshyatt
Copy link
Contributor

@kshyatt kshyatt commented Nov 8, 2017

I'm not trying to test the deprecated method itself so much as this wrapper we have around it, which is chilling in base. If we don't want to test deprecation pass throughs at all feel free to close!

@kshyatt kshyatt added collections Data structures holding multiple items, e.g. sets test This change adds or pertains to unit tests labels Nov 8, 2017
@martinholters
Copy link
Member

As the warning is produced using depwarn, it errors on CI due to --depwarn=error. Not sure whether that is the right thing to do for this particular warning, though...

@fredrikekre
Copy link
Member

fredrikekre commented Nov 9, 2017

That function will be removed when then deprecations are removed, see #23311 and the note here:

julia/base/deprecated.jl

Lines 1628 to 1629 in caa7f04

# issue #17886
# deprecations for filter[!] with 2-arg functions are in associative.jl
. We typically don't test deprecated stuff, right?

@martinholters
Copy link
Member

We typically don't test deprecated stuff, right?

True. And sure enough there have been a bunch of errors in deprecations in the past. So a framework for testing deprecations would be ice to have. I imagine something like @test_deprecated deprecated_function() == expected_result which behaves like @test, @test_warn, or @test_throws depending on the setting of --depwarn. All @test_deprecateds could then be collected in a file that is run three times, once for each possible setting of --depwarn. (Do we have an issue for that, yet?)

@fredrikekre
Copy link
Member

Do we have an issue for that, yet?

#20348

@KristofferC
Copy link
Sponsor Member

Seems obsolete now with deprecations removed.

@kshyatt kshyatt deleted the ksh/filterdep branch August 15, 2018 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
collections Data structures holding multiple items, e.g. sets test This change adds or pertains to unit tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants