From: Fred Drake Date: Thu, 12 Sep 2002 17:02:01 +0000 (+0000) Subject: Relax a test so it passes either with the standard library or PyXML. X-Git-Tag: v2.3c1~4111 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d2909c901e194bd504f65e18b37cafcec43bfcd9;p=thirdparty%2FPython%2Fcpython.git Relax a test so it passes either with the standard library or PyXML. 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. --- diff --git a/Lib/test/test_sax.py b/Lib/test/test_sax.py index 3db0189ffa42..1200329934e8 100644 --- a/Lib/test/test_sax.py +++ b/Lib/test/test_sax.py @@ -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 \