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

Fixed deprecationwarning due to vso.attrs #3813

Closed
wants to merge 1 commit into from

Conversation

abhijeetmanhas
Copy link
Contributor

sunpy/net/tests/test_fido.py:268: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <[AttributeError("'Time' object has no attribute 'start'",) raised in repr()] Time object at 0x7f82cbd44240>
args = ('2011-06-07 06:33', '2011-06-07 06:33:08'), kwargs = {}, name = 'Time'

    def __init__(self, *args, **kwargs):
        name = type(self).__name__
        warnings.warn(f"sunpy.net.vso.attrs.{name} is deprecated, please use sunpy.net.attrs.{name}",
>                     SunpyDeprecationWarning)
E       sunpy.util.exceptions.SunpyDeprecationWarning: sunpy.net.vso.attrs.Time is deprecated, please use sunpy.net.attrs.Time

sunpy/net/vso/attrs.py:380: SunpyDeprecationWarning

This warning comes while running test_fido.py , removed it by replacing sunpy.net.vso.attrs by sunpy.net.attrs .

@abhijeetmanhas abhijeetmanhas requested a review from a team as a code owner February 18, 2020 12:15
@abhijeetmanhas
Copy link
Contributor Author

Does it even need a changelog?

@abhijeetmanhas abhijeetmanhas deleted the vso_warn branch March 15, 2020 13:07
@abhijeetmanhas abhijeetmanhas restored the vso_warn branch March 15, 2020 13:07
@abhijeetmanhas abhijeetmanhas deleted the vso_warn branch March 21, 2020 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant