Tests fail

Issue #12 resolved
Jakub Wilk created an issue

With pybtex 0.13, many tests fail:

$ nosetests /tmp/pybtex-0.13/pybtex/tests/run_bibtex.py:34: Warning: 'with' will become a reserved keyword in Python 2.6 EEEEE..........EE.EFFF.F.......F.EEEE.

ERROR: Failure: ImportError (No module named kpathsea) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/pymodules/python2.5/nose/loader.py", line 379, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/pymodules/python2.5/nose/importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/pymodules/python2.5/nose/importer.py", line 86, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/tmp/pybtex-0.13/pybtex/auxfile.py", line 24, in <module> import pybtex.io File "/tmp/pybtex-0.13/pybtex/io.py", line 25, in <module> from pybtex.kpathsea import kpsewhich ImportError: No module named kpathsea

ERROR: Failure: ImportError (No module named kpathsea) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/pymodules/python2.5/nose/loader.py", line 379, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/pymodules/python2.5/nose/importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/pymodules/python2.5/nose/importer.py", line 86, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/tmp/pybtex-0.13/pybtex/backends/__init__.py", line 16, in <module> import pybtex.io File "/tmp/pybtex-0.13/pybtex/io.py", line 25, in <module> from pybtex.kpathsea import kpsewhich ImportError: No module named kpathsea

ERROR: Failure: ImportError (No module named kpathsea) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/pymodules/python2.5/nose/loader.py", line 379, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/pymodules/python2.5/nose/importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/pymodules/python2.5/nose/importer.py", line 86, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/tmp/pybtex-0.13/pybtex/bibtex/bst.py", line 20, in <module> from pybtex.bibtex.interpreter import (Integer, String, QuotedVar, File "/tmp/pybtex-0.13/pybtex/bibtex/interpreter.py", line 17, in <module> from pybtex.bibtex.builtins import builtins File "/tmp/pybtex-0.13/pybtex/bibtex/builtins.py", line 21, in <module> import pybtex.io File "/tmp/pybtex-0.13/pybtex/io.py", line 25, in <module> from pybtex.kpathsea import kpsewhich ImportError: No module named kpathsea

ERROR: Failure: ImportError (No module named kpathsea) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/pymodules/python2.5/nose/loader.py", line 379, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/pymodules/python2.5/nose/importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/pymodules/python2.5/nose/importer.py", line 86, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/tmp/pybtex-0.13/pybtex/bibtex/builtins.py", line 21, in <module> import pybtex.io File "/tmp/pybtex-0.13/pybtex/io.py", line 25, in <module> from pybtex.kpathsea import kpsewhich ImportError: No module named kpathsea

ERROR: Failure: ImportError (No module named kpathsea) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/pymodules/python2.5/nose/loader.py", line 379, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/pymodules/python2.5/nose/importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/pymodules/python2.5/nose/importer.py", line 86, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/tmp/pybtex-0.13/pybtex/bibtex/interpreter.py", line 17, in <module> from pybtex.bibtex.builtins import builtins File "/tmp/pybtex-0.13/pybtex/bibtex/builtins.py", line 21, in <module> import pybtex.io File "/tmp/pybtex-0.13/pybtex/io.py", line 25, in <module> from pybtex.kpathsea import kpsewhich ImportError: No module named kpathsea

ERROR: Failure: ImportError (No module named kpathsea) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/pymodules/python2.5/nose/loader.py", line 379, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/pymodules/python2.5/nose/importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/pymodules/python2.5/nose/importer.py", line 86, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/tmp/pybtex-0.13/pybtex/database/input/__init__.py", line 20, in <module> import pybtex.io File "/tmp/pybtex-0.13/pybtex/io.py", line 25, in <module> from pybtex.kpathsea import kpsewhich ImportError: No module named kpathsea

ERROR: Failure: ImportError (No module named kpathsea) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/pymodules/python2.5/nose/loader.py", line 379, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/pymodules/python2.5/nose/importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/pymodules/python2.5/nose/importer.py", line 86, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/tmp/pybtex-0.13/pybtex/database/output/__init__.py", line 18, in <module> import pybtex.io File "/tmp/pybtex-0.13/pybtex/io.py", line 25, in <module> from pybtex.kpathsea import kpsewhich ImportError: No module named kpathsea

ERROR: Failure: ImportError (No module named kpathsea) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/pymodules/python2.5/nose/loader.py", line 379, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/pymodules/python2.5/nose/importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/pymodules/python2.5/nose/importer.py", line 86, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/tmp/pybtex-0.13/pybtex/io.py", line 25, in <module> from pybtex.kpathsea import kpsewhich ImportError: No module named kpathsea

ERROR: Failure: SyntaxError (invalid syntax (run_bibtex.py, line 34)) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/pymodules/python2.5/nose/loader.py", line 379, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/pymodules/python2.5/nose/importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/pymodules/python2.5/nose/importer.py", line 86, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/tmp/pybtex-0.13/pybtex/tests/run_bibtex.py", line 34 with open(filename, 'w') as aux_file: ^ SyntaxError: invalid syntax

ERROR: test_bibtex_inpub (pybtex.tests.database_test.DatabaseIOTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/pybtex-0.13/pybtex/tests/database_test/__init__.py", line 39, in test_bibtex_inpub self._test_input('bibtex') File "/tmp/pybtex-0.13/pybtex/tests/database_test/__init__.py", line 29, in _test_input parser = find_plugin('pybtex.database.input', plugin).Parser(encoding='UTF-8') File "/tmp/pybtex-0.13/pybtex/plugin.py", line 22, in find_plugin m = __import__(str(plugin_path), globals(), locals(), [str(name)]) File "/tmp/pybtex-0.13/pybtex/database/input/__init__.py", line 20, in <module> import pybtex.io File "/tmp/pybtex-0.13/pybtex/io.py", line 25, in <module> from pybtex.kpathsea import kpsewhich ImportError: No module named kpathsea

ERROR: test_bibtexml_inpub (pybtex.tests.database_test.DatabaseIOTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/pybtex-0.13/pybtex/tests/database_test/__init__.py", line 47, in test_bibtexml_inpub self._test_input('bibtexml') File "/tmp/pybtex-0.13/pybtex/tests/database_test/__init__.py", line 29, in _test_input parser = find_plugin('pybtex.database.input', plugin).Parser(encoding='UTF-8') File "/tmp/pybtex-0.13/pybtex/plugin.py", line 22, in find_plugin m = __import__(str(plugin_path), globals(), locals(), [str(name)]) File "/tmp/pybtex-0.13/pybtex/database/input/__init__.py", line 20, in <module> import pybtex.io File "/tmp/pybtex-0.13/pybtex/io.py", line 25, in <module> from pybtex.kpathsea import kpsewhich ImportError: No module named kpathsea

ERROR: test_bibyaml_inpub (pybtex.tests.database_test.DatabaseIOTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/pybtex-0.13/pybtex/tests/database_test/__init__.py", line 42, in test_bibyaml_inpub self._test_input('bibyaml') File "/tmp/pybtex-0.13/pybtex/tests/database_test/__init__.py", line 29, in _test_input parser = find_plugin('pybtex.database.input', plugin).Parser(encoding='UTF-8') File "/tmp/pybtex-0.13/pybtex/plugin.py", line 22, in find_plugin m = __import__(str(plugin_path), globals(), locals(), [str(name)]) File "/tmp/pybtex-0.13/pybtex/database/input/__init__.py", line 20, in <module> import pybtex.io File "/tmp/pybtex-0.13/pybtex/io.py", line 25, in <module> from pybtex.kpathsea import kpsewhich ImportError: No module named kpathsea

FAIL: Doctest: pybtex.richtext ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 2128, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for pybtex.richtext File "/tmp/pybtex-0.13/pybtex/richtext.py", line 15, in richtext

---------------------------------------------------------------------- File "/tmp/pybtex-0.13/pybtex/richtext.py", line 20, in pybtex.richtext Failed example: from pybtex.backends import latex Exception raised: Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 1228, in __run compileflags, 1) in test.globs File "<doctest pybtex.richtext[0]>", line 1, in <module> from pybtex.backends import latex File "/tmp/pybtex-0.13/pybtex/backends/__init__.py", line 16, in <module> import pybtex.io File "/tmp/pybtex-0.13/pybtex/io.py", line 25, in <module> from pybtex.kpathsea import kpsewhich ImportError: No module named kpathsea ---------------------------------------------------------------------- File "/tmp/pybtex-0.13/pybtex/richtext.py", line 21, in pybtex.richtext Failed example: backend = latex.Writer() Exception raised: Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 1228, in __run compileflags, 1) in test.globs File "<doctest pybtex.richtext[1]>", line 1, in <module> backend = latex.Writer() NameError: name 'latex' is not defined ---------------------------------------------------------------------- File "/tmp/pybtex-0.13/pybtex/richtext.py", line 23, in pybtex.richtext Failed example: print t.render(backend) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 1228, in __run compileflags, 1) in test.globs File "<doctest pybtex.richtext[3]>", line 1, in <module> print t.render(backend) NameError: name 'backend' is not defined ---------------------------------------------------------------------- File "/tmp/pybtex-0.13/pybtex/richtext.py", line 28, in pybtex.richtext Failed example: print t.render(backend) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 1228, in __run compileflags, 1) in test.globs File "<doctest pybtex.richtext[6]>", line 1, in <module> print t.render(backend) NameError: name 'backend' is not defined ---------------------------------------------------------------------- File "/tmp/pybtex-0.13/pybtex/richtext.py", line 32, in pybtex.richtext Failed example: print Symbol('ndash').render(backend) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 1228, in __run compileflags, 1) in test.globs File "<doctest pybtex.richtext[8]>", line 1, in <module> print Symbol('ndash').render(backend) NameError: name 'backend' is not defined ---------------------------------------------------------------------- File "/tmp/pybtex-0.13/pybtex/richtext.py", line 35, in pybtex.richtext Failed example: print t.render(backend) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 1228, in __run compileflags, 1) in test.globs File "<doctest pybtex.richtext[10]>", line 1, in <module> print t.render(backend) NameError: name 'backend' is not defined ---------------------------------------------------------------------- File "/tmp/pybtex-0.13/pybtex/richtext.py", line 41, in pybtex.richtext Failed example: print t.render(backend) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 1228, in __run compileflags, 1) in test.globs File "<doctest pybtex.richtext[14]>", line 1, in <module> print t.render(backend) NameError: name 'backend' is not defined ---------------------------------------------------------------------- File "/tmp/pybtex-0.13/pybtex/richtext.py", line 47, in pybtex.richtext Failed example: print t.render(backend) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 1228, in __run compileflags, 1) in test.globs File "<doctest pybtex.richtext[17]>", line 1, in <module> print t.render(backend) NameError: name 'backend' is not defined ---------------------------------------------------------------------- File "/tmp/pybtex-0.13/pybtex/richtext.py", line 52, in pybtex.richtext Failed example: print t.render(backend) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 1228, in __run compileflags, 1) in test.globs File "<doctest pybtex.richtext[20]>", line 1, in <module> print t.render(backend) NameError: name 'backend' is not defined

FAIL: Doctest: pybtex.richtext.Symbol ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 2128, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for pybtex.richtext.Symbol File "/tmp/pybtex-0.13/pybtex/richtext.py", line 269, in Symbol

---------------------------------------------------------------------- File "/tmp/pybtex-0.13/pybtex/richtext.py", line 275, in pybtex.richtext.Symbol Failed example: from pybtex.backends import latex, html Exception raised: Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 1228, in __run compileflags, 1) in test.globs File "<doctest pybtex.richtext.Symbol[1]>", line 1, in <module> from pybtex.backends import latex, html File "/tmp/pybtex-0.13/pybtex/backends/__init__.py", line 16, in <module> import pybtex.io File "/tmp/pybtex-0.13/pybtex/io.py", line 25, in <module> from pybtex.kpathsea import kpsewhich ImportError: No module named kpathsea ---------------------------------------------------------------------- File "/tmp/pybtex-0.13/pybtex/richtext.py", line 276, in pybtex.richtext.Symbol Failed example: print nbsp.render(latex.Writer()) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 1228, in __run compileflags, 1) in test.globs File "<doctest pybtex.richtext.Symbol[2]>", line 1, in <module> print nbsp.render(latex.Writer()) NameError: name 'latex' is not defined ---------------------------------------------------------------------- File "/tmp/pybtex-0.13/pybtex/richtext.py", line 278, in pybtex.richtext.Symbol Failed example: print nbsp.render(html.Writer()) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 1228, in __run compileflags, 1) in test.globs File "<doctest pybtex.richtext.Symbol[3]>", line 1, in <module> print nbsp.render(html.Writer()) NameError: name 'html' is not defined

FAIL: Doctest: pybtex.richtext.Tag ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 2128, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for pybtex.richtext.Tag File "/tmp/pybtex-0.13/pybtex/richtext.py", line 245, in Tag

---------------------------------------------------------------------- File "/tmp/pybtex-0.13/pybtex/richtext.py", line 251, in pybtex.richtext.Tag Failed example: from pybtex.backends import latex, html Exception raised: Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 1228, in __run compileflags, 1) in test.globs File "<doctest pybtex.richtext.Tag[1]>", line 1, in <module> from pybtex.backends import latex, html File "/tmp/pybtex-0.13/pybtex/backends/__init__.py", line 16, in <module> import pybtex.io File "/tmp/pybtex-0.13/pybtex/io.py", line 25, in <module> from pybtex.kpathsea import kpsewhich ImportError: No module named kpathsea ---------------------------------------------------------------------- File "/tmp/pybtex-0.13/pybtex/richtext.py", line 252, in pybtex.richtext.Tag Failed example: print emph.render(latex.Writer()) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 1228, in __run compileflags, 1) in test.globs File "<doctest pybtex.richtext.Tag[2]>", line 1, in <module> print emph.render(latex.Writer()) NameError: name 'latex' is not defined ---------------------------------------------------------------------- File "/tmp/pybtex-0.13/pybtex/richtext.py", line 254, in pybtex.richtext.Tag Failed example: print emph.render(html.Writer()) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 1228, in __run compileflags, 1) in test.globs File "<doctest pybtex.richtext.Tag[3]>", line 1, in <module> print emph.render(html.Writer()) NameError: name 'html' is not defined

FAIL: Doctest: pybtex.richtext.Text.add_period ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 2128, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for pybtex.richtext.Text.add_period File "/tmp/pybtex-0.13/pybtex/richtext.py", line 206, in add_period

---------------------------------------------------------------------- File "/tmp/pybtex-0.13/pybtex/richtext.py", line 209, in pybtex.richtext.Text.add_period Failed example: import pybtex.backends.html Exception raised: Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 1228, in __run compileflags, 1) in test.globs File "<doctest pybtex.richtext.Text.add_period[0]>", line 1, in <module> import pybtex.backends.html File "/tmp/pybtex-0.13/pybtex/backends/__init__.py", line 16, in <module> import pybtex.io File "/tmp/pybtex-0.13/pybtex/io.py", line 25, in <module> from pybtex.kpathsea import kpsewhich ImportError: No module named kpathsea ---------------------------------------------------------------------- File "/tmp/pybtex-0.13/pybtex/richtext.py", line 210, in pybtex.richtext.Text.add_period Failed example: html = pybtex.backends.html.Writer() Exception raised: Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 1228, in __run compileflags, 1) in test.globs File "<doctest pybtex.richtext.Text.add_period[1]>", line 1, in <module> html = pybtex.backends.html.Writer() NameError: name 'pybtex' is not defined ---------------------------------------------------------------------- File "/tmp/pybtex-0.13/pybtex/richtext.py", line 217, in pybtex.richtext.Text.add_period Failed example: print text.add_period().render(html) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 1228, in __run compileflags, 1) in test.globs File "<doctest pybtex.richtext.Text.add_period[5]>", line 1, in <module> print text.add_period().render(html) NameError: name 'html' is not defined ---------------------------------------------------------------------- File "/tmp/pybtex-0.13/pybtex/richtext.py", line 219, in pybtex.richtext.Text.add_period Failed example: print text.add_period().add_period().render(html) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 1228, in __run compileflags, 1) in test.globs File "<doctest pybtex.richtext.Text.add_period[6]>", line 1, in <module> print text.add_period().add_period().render(html) NameError: name 'html' is not defined ---------------------------------------------------------------------- File "/tmp/pybtex-0.13/pybtex/richtext.py", line 223, in pybtex.richtext.Text.add_period Failed example: print text.add_period().render(html) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 1228, in __run compileflags, 1) in test.globs File "<doctest pybtex.richtext.Text.add_period[8]>", line 1, in <module> print text.add_period().render(html) NameError: name 'html' is not defined ---------------------------------------------------------------------- File "/tmp/pybtex-0.13/pybtex/richtext.py", line 225, in pybtex.richtext.Text.add_period Failed example: print text.add_period().add_period().render(html) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 1228, in __run compileflags, 1) in test.globs File "<doctest pybtex.richtext.Text.add_period[9]>", line 1, in <module> print text.add_period().add_period().render(html) NameError: name 'html' is not defined ---------------------------------------------------------------------- File "/tmp/pybtex-0.13/pybtex/richtext.py", line 229, in pybtex.richtext.Text.add_period Failed example: print text.add_period().render(html) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 1228, in __run compileflags, 1) in test.globs File "<doctest pybtex.richtext.Text.add_period[11]>", line 1, in <module> print text.add_period().render(html) NameError: name 'html' is not defined ---------------------------------------------------------------------- File "/tmp/pybtex-0.13/pybtex/richtext.py", line 233, in pybtex.richtext.Text.add_period Failed example: print text.add_period('!').render(html) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 1228, in __run compileflags, 1) in test.globs File "<doctest pybtex.richtext.Text.add_period[13]>", line 1, in <module> print text.add_period('!').render(html) NameError: name 'html' is not defined ---------------------------------------------------------------------- File "/tmp/pybtex-0.13/pybtex/richtext.py", line 235, in pybtex.richtext.Text.add_period Failed example: print text.add_period('!').add_period('.').render(html) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 1228, in __run compileflags, 1) in test.globs File "<doctest pybtex.richtext.Text.add_period[14]>", line 1, in <module> print text.add_period('!').add_period('.').render(html) NameError: name 'html' is not defined

FAIL: Doctest: pybtex.style.template.__test__.tag ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 2128, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for pybtex.style.template.__test__.tag File "/tmp/pybtex-0.13/pybtex/style/template.py", line 269, in tag

---------------------------------------------------------------------- File "/tmp/pybtex-0.13/pybtex/style/template.py", line 272, in pybtex.style.template.__test__.tag Failed example: import pybtex.backends.html Exception raised: Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 1228, in __run compileflags, 1) in test.globs File "<doctest pybtex.style.template.__test__.tag[0]>", line 1, in <module> import pybtex.backends.html File "/tmp/pybtex-0.13/pybtex/backends/__init__.py", line 16, in <module> import pybtex.io File "/tmp/pybtex-0.13/pybtex/io.py", line 25, in <module> from pybtex.kpathsea import kpsewhich ImportError: No module named kpathsea ---------------------------------------------------------------------- File "/tmp/pybtex-0.13/pybtex/style/template.py", line 273, in pybtex.style.template.__test__.tag Failed example: html = pybtex.backends.html.Writer() Exception raised: Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 1228, in __run compileflags, 1) in test.globs File "<doctest pybtex.style.template.__test__.tag[1]>", line 1, in <module> html = pybtex.backends.html.Writer() NameError: name 'pybtex' is not defined ---------------------------------------------------------------------- File "/tmp/pybtex-0.13/pybtex/style/template.py", line 274, in pybtex.style.template.__test__.tag Failed example: print tag('emph') ['important'].format().render(html) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 1228, in __run compileflags, 1) in test.globs File "<doctest pybtex.style.template.__test__.tag[2]>", line 1, in <module> print tag('emph') ['important'].format().render(html) NameError: name 'html' is not defined ---------------------------------------------------------------------- File "/tmp/pybtex-0.13/pybtex/style/template.py", line 276, in pybtex.style.template.__test__.tag Failed example: print sentence ['ready', 'set', tag('emph') ['go']].format().render(html) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.5/doctest.py", line 1228, in __run compileflags, 1) in test.globs File "<doctest pybtex.style.template.__test__.tag[3]>", line 1, in <module> print sentence ['ready', 'set', tag('emph') ['go']].format().render(html) NameError: name 'html' is not defined

---------------------------------------------------------------------- Ran 38 tests in 0.834s

FAILED (errors=12, failures=5)

Comments (2)

  1. Andrey Golovizin

    That's weid, pybtex/kpathsea.py is missing from the tarball. Thank you very much for reporthing that! :) Fixed in 1.13.1.

  2. Log in to comment