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 suite fails when working offline #176

Open
mgorny opened this issue Jan 4, 2025 · 1 comment
Open

Test suite fails when working offline #176

mgorny opened this issue Jan 4, 2025 · 1 comment

Comments

@mgorny
Copy link

mgorny commented Jan 4, 2025

When running the test suite on a firewalled environment without direct Internet connectivity, all tests fail with the same error, e.g.:

___________________________________________________________ test_glissando ____________________________________________________________

    def test_glissando():
>       compare_output('glissando')

tests/test_xml.py:16: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_xml.py:109: in compare_output
    validate_xml(output)
tests/test_xml.py:118: in validate_xml
    xmlschema = etree.XMLSchema(xmlschema_doc)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   lxml.etree.XMLSchemaParseError: attribute use (unknown), attribute 'ref': The QName value '{http://www.w3.org/XML/1998/namespace}lang' does not resolve to a(n) attribute declaration., line 1810

src/lxml/xmlschema.pxi:90: XMLSchemaParseError
@mgorny
Copy link
Author

mgorny commented Jan 4, 2025

FWICS lxml has no caching either, so it refetches all the remote schema files every time. There's some discussion about the problem here: w3c/musicxml#445. Apparently, the simplest solution would be to include the other files in the distribution, and replace the URL references with local paths.

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

No branches or pull requests

1 participant