summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-09-12 17:02:01 (GMT)
committerFred Drake <fdrake@acm.org>2002-09-12 17:02:01 (GMT)
commitd2909c901e194bd504f65e18b37cafcec43bfcd9 (patch)
treea7a0f3da77472f0c3d9b9d7d86b12af2f8b66c20 /Lib/test
parentefc1188239bf4381b7749d2f43836bbb216cfc44 (diff)
downloadcpython-d2909c901e194bd504f65e18b37cafcec43bfcd9.zip
cpython-d2909c901e194bd504f65e18b37cafcec43bfcd9.tar.gz
cpython-d2909c901e194bd504f65e18b37cafcec43bfcd9.tar.bz2
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.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_sax.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_sax.py b/Lib/test/test_sax.py
index 3db0189..1200329 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 \