id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 17641,HTMLParser has no interesting_cdata attribute with a Python version > 2.7.2,Ramiro Morales,nobody,"Our recent enhancements to the HTML content checking assertions in our test utils subclass and customizes standard library HTMLParser. But in recent HTMLParser shipped with recent 2.7.x CPythons there is no more a `interesting_cdata` module-level RE variable. This results in 15 errors in our test suite like this {{{ ====================================================================== ERROR: test_readonly_get (regressiontests.admin_views.tests.ReadonlyTest) ---------------------------------------------------------------------- Traceback (most recent call last): File ""tests/regressiontests/admin_views/tests.py"", line 2861, in test_readonly_get self.assertContains(response, '

Some help text for the title (with unicode ŠĐĆŽćžšđ)

', html=True) File ""django/test/testcases.py"", line 627, in assertContains u""Response's content is not valid HTML:"") File ""django/test/testcases.py"", line 87, in assert_and_parse_html dom = parse_html(html) File ""django/test/html.py"", line 213, in parse_html parser.feed(html) File ""/usr/lib/python2.7/HTMLParser.py"", line 111, in feed self.goahead(0) File ""/usr/lib/python2.7/HTMLParser.py"", line 155, in goahead k = self.parse_starttag(i) File ""django/utils/htmlparser.py"", line 68, in parse_starttag self.set_cdata_mode(tag) # <--------------------------- Changed File ""django/utils/htmlparser.py"", line 14, in set_cdata_mode self.interesting = _HTMLParser.interesting_cdata AttributeError: 'module' object has no attribute 'interesting_cdata' }}} See: * http://hg.python.org/cpython/rev/91163aa3d5b4 * http://bugs.python.org/issue13358 Our CI server is using an older 2.7.x Python. ",Bug,closed,Testing framework,dev,Release blocker,fixed,,,Accepted,1,0,1,0,0,0