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

CADC int tests failing #2325

Closed
andamian opened this issue Mar 18, 2022 · 2 comments
Closed

CADC int tests failing #2325

andamian opened this issue Mar 18, 2022 · 2 comments

Comments

@andamian
Copy link

3 cadc int tests are failing.

2 of them (test_get_images, test_get_images_async) fail with a VOTable parse error which can be caused either by service or VOTable incompatibilities with the spec. It requires further investigation.

warning = E02('?:?:?: E02: Incorrect number of elements in array. Expected multiple of 2, got 1')
config = {'_warning_counts': {<class 'astropy.io.votable.exceptions.E02'>: 1}}
stacklevel = 3

    def _suppressed_warning(warning, config, stacklevel=2):
        warning_class = type(warning)
        config.setdefault('_warning_counts', dict()).setdefault(warning_class, 0)
        config['_warning_counts'][warning_class] += 1
        message_count = config['_warning_counts'][warning_class]
        if message_count <= conf.max_warnings:
            if message_count == conf.max_warnings:
                warning.formatted_message += \
                    ' (suppressing further warnings of this type...)'
>           warn(warning, stacklevel=stacklevel+1)
E           astropy.io.votable.exceptions.E02: ?:?:?: E02: Incorrect number of elements in array. Expected multiple of 2, got 1

The third one (test_list_jobs) is failing in PyVO with an unexpected element. Again incompatibilities with the spec in either the service or PyVO - to be investigated.

>           warn(warning, stacklevel=stacklevel+1)
E           pyvo.utils.xml.exceptions.UnknownElementWarning: None:2:0: UnknownElementWarning: Unknown element jobs
``
@bsipocz
Copy link
Member

bsipocz commented Mar 18, 2022

This is a duplicate of #2242 so I'm closing it to keep it tracked there and in #2203

@andamian
Copy link
Author

Forgot about it 🤦‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants