HaveF / feedparser

Automatically exported from code.google.com/p/feedparser
Other
0 stars 0 forks source link

Failing test ./tests/illformed/undeclared_namespace.xml: undeclared namespace #417

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.run python feedparsertest.py with python-2.7.5-8.el7.x86_64 and dc3bd29 (from 
github repo)
2.
3.

What is the expected output? What do you see instead?
all tests should pass, but instead I get:

======================================================================
ERROR: test_001959 (__main__.TestCase)
./tests/illformed/undeclared_namespace.xml: undeclared namespace
----------------------------------------------------------------------
Traceback (most recent call last):
  File "feedparsertest.py", line 764, in <lambda>
    self.failUnlessEval(xmlfile, evalString)
  File "feedparsertest.py", line 162, in failUnlessEval
    env = feedparser.parse(xmlfile)
  File "/home/matej/archiv/knihovna/repos/feedparser/feedparser/feedparser.py", line 3746, in parse
    saxparser.parse(source)
  File "/usr/lib64/python2.7/site-packages/drv_libxml2.py", line 208, in parse
    eltName,eltQName,attributesNSImpl)
  File "/home/matej/archiv/knihovna/repos/feedparser/feedparser/feedparser.py", line 1952, in startElementNS
    raise UndeclaredNamespace, "'%s' is not associated with a namespace" % givenprefix
UndeclaredNamespace: 'itunes' is not associated with a namespace

----------------------------------------------------------------------
Ran 4307 tests in 14.541s

FAILED (errors=1)

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by matej.c...@gmail.com on 8 Nov 2013 at 2:32

GoogleCodeExporter commented 9 years ago
This was already reported in #414: 
http://code.google.com/p/feedparser/issues/detail?id=414

Original comment by j.koncic...@gmail.com on 10 Mar 2014 at 1:34

GoogleCodeExporter commented 9 years ago
Thanks for reporting this!

Original comment by kurtmckee on 10 Jul 2014 at 5:10