[Expat-checkins] expat/tests runtests.c,1.43,1.44
Fred L. Drake, Jr.
fdrake at acm.org
Fri Jan 24 11:01:16 EST 2003
Karl Waclawek writes:
> Should have looked more closely before.
> You are using thee wrong type of document.
>
> xmlns='' is OK, but xmlns:pre='' is not.
You're still looking at the wrong test; test_ns_default_with_empty_uri
passes as expected.
> This is Jeremy's test document:
>
> <?xml version='1.0'?>
> <docelem xmlns:pre=""/>
If I modify test_ns_prefix_with_empty_uri_2 to use exactly this
document:
/* Regression test #2 for SF bug #673791. */
START_TEST(test_ns_prefix_with_empty_uri_2)
{
char *text =
"<?xml version='1.0'?>\n"
"<docelem xmlns:pre=''/>";
expect_failure(text,
XML_ERROR_SYNTAX,
"Did not report setting namespace URI with prefix to ''.");
}
END_TEST
...the test fails. Is this test wrong?
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>
PythonLabs at Zope Corporation
More information about the Expat-checkins
mailing list