[issue14168] minidom behaves differently in 3.3 compared to 3.2
Vinay Sajip
report at bugs.python.org
Fri Mar 2 09:34:45 CET 2012
Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:
The error which prompted this issue was not caused by external code peeking into the internals - it was just my toy test script which did that. The error came up in Django testing:
======================================================================
ERROR: test_secure_urls (regressiontests.syndication.tests.SyndicationFeedTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/vinay/projects/django3/tests/regressiontests/syndication/tests.py", line 255, in test_secure_urls
if link.getAttribute('rel') == 'self':
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/xml/dom/minidom.py", line 727, in getAttribute
return self._attrs[attname].value
TypeError: 'NoneType' object is not subscriptable
So, perhaps there is a missing _ensure_attributes() call somewhere.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14168>
_______________________________________
More information about the Python-bugs-list
mailing list