diff --git a/Lib/test/test_sax.py b/Lib/test/test_sax.py index 3db0189ffa4..1200329934e 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 \