mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-17 00:59:34 +03:00
parser: Report fatal error if document entity couldn't be loaded
Only lower error level when loading entities. Fixes #667.
This commit is contained in:
@ -90,7 +90,7 @@ run_test(desc="Loading entity without custom callback",
|
||||
docpath=startURL, catalog=None,
|
||||
exp_status="not loaded", exp_err=[
|
||||
(-1, "I/O "),
|
||||
(-1, "warning : "),
|
||||
(-1, "error : "),
|
||||
(-1, "failed to load \"py://strings/xml/sample.xml\": No such file or directory\n")
|
||||
])
|
||||
|
||||
@ -122,7 +122,7 @@ run_test(desc="Retry loading document after unregistering callback",
|
||||
docpath=startURL, catalog=catURL,
|
||||
exp_status="not loaded", exp_err=[
|
||||
(-1, "I/O "),
|
||||
(-1, "warning : "),
|
||||
(-1, "error : "),
|
||||
(-1, "failed to load \"py://strings/xml/sample.xml\": No such file or directory\n")
|
||||
])
|
||||
|
||||
@ -142,7 +142,7 @@ run_test(desc="Loading using standard i/o after unregistering all callbacks",
|
||||
docpath="tst.xml", catalog=None,
|
||||
exp_status="not loaded", exp_err=[
|
||||
(-1, "I/O "),
|
||||
(-1, "warning : "),
|
||||
(-1, "error : "),
|
||||
(-1, "failed to load \"tst.xml\": No such file or directory\n")
|
||||
])
|
||||
|
||||
|
Reference in New Issue
Block a user