]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Relax a test so it passes either with the standard library or PyXML.
authorFred Drake <fdrake@acm.org>
Thu, 12 Sep 2002 17:02:01 +0000 (17:02 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 12 Sep 2002 17:02:01 +0000 (17:02 +0000)
The original expected value is actually wrong, but we'll pick up the
real fix and test when we refresh the xml package from PyXML before
2.3a1.

Lib/test/test_sax.py

index 3db0189ffa4207f9396c2edb8ff957dcac436151..1200329934e86f569ec2bc86ba53f189e3be8a57 100644 (file)
@@ -337,7 +337,7 @@ def test_expat_nsattrs_wattr():
 
     return attrs.getLength() == 1 and \
            attrs.getNames() == [(ns_uri, "attr")] and \
-           attrs.getQNames() == [] and \
+           (attrs.getQNames() == [] or attrs.getQNames() == ["ns:attr"]) and \
            len(attrs) == 1 and \
            attrs.has_key((ns_uri, "attr")) and \
            attrs.keys() == [(ns_uri, "attr")] and \