Relatorio

Message42

Author ced
Recipients
Date 2017-08-13.11:52:49
Message-id <1502617970.19.0.105372735145.bug34@tryton.org>
In-reply-to
The tests fail under PyPY with the traceback:

Traceback (most recent call last):
  File "/relatorio/relatorio/tests/test_odt.py", line 340,
in test_generate_fod
    oot = Template(source)
  File "/relatorio/relatorio/templates/opendocument.py",
line 237, in __init__
    encoding, lookup, allow_exec)
  File
"build/bdist.linux-x86_64/egg/genshi/template/markup.py",
line 67, in __init__
    allow_exec=allow_exec)
  File
"build/bdist.linux-x86_64/egg/genshi/template/base.py", line
419, in __init__
    self._stream = self._parse(source, encoding)
  File "/relatorio/relatorio/templates/opendocument.py",
line 258, in _parse
    zf = get_zip_file(source)
  File "/relatorio/relatorio/templates/opendocument.py",
line 820, in get_zip_file
    return zipfile.ZipFile(fod2od(source))
  File "/usr/local/lib-python/2.7/zipfile.py", line 776, in
__init__
    self._RealGetContents()
  File "/usr/local/lib-python/2.7/zipfile.py", line 819, in
_RealGetContents
    raise BadZipfile, "File is not a zip file"
BadZipfile: File is not a zip file
History
Date User Action Args
2017-08-13 11:52:50cedsetmessageid: <1502617970.19.0.105372735145.bug34@tryton.org>
2017-08-13 11:52:50cedlinkbug34 messages
2017-08-13 11:52:49cedcreate