Re: expat/tests runtests.c,1.43,1.44

"Fred L. Drake, Jr." <[email protected]>
Newsgroups gmane.text.xml.expat.cvs
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.