1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-23 01:52:48 +03:00

parser: Make XML_IO_NETWORK_ATTEMPT behave as before

Always reported to generic error, not to parser context for backward
compatibility. Several downstream test suites rely on this behavior.
This commit is contained in:
Nick Wellnhofer
2023-12-25 18:31:22 +01:00
parent a26934105e
commit 60841beba6
2 changed files with 18 additions and 4 deletions

View File

@@ -99,8 +99,8 @@ libxml2.registerInputCallback(my_input_cb)
run_test(desc="Loading entity with custom callback",
docpath=startURL, catalog=None,
exp_status="loaded", exp_err=[
( 3, 'failed to load "http://example.com/dtds/sample.dtd": Attempt to load network entity\n'),
( 4, "Entity 'sample.entity' not defined\n")
( -1, "Attempt to load network entity http://example.com/dtds/sample.dtd"),
( 4, "Entity 'sample.entity' not defined\n")
])
# Register a catalog (also accessible via pystr://) and retry