Lino Website

Problem reports

Test 73 fails

Wednesday, 30. August 2006 00:27.

Test 73 fails and I have no idea why:

T:\svnwork\lino\trunk\tests>lino runtests 73
Copyright (c) 2004-2006 Luc Saffre.
This software comes with ABSOLUTELY NO WARRANTY and is
distributed under the terms of the GNU General Public License.
See file COPYING.txt for more information.
Using Lino 0.6.19, Python 2.3.4 final
found 1 cases and 0 suites.
FAIL: test02 (73.Case)
Traceback (most recent call last):
  File "T:\svnwork\lino\trunk\tests\", line 70, in test02
  File "T:\svnwork\lino\trunk\tests\", line 50, in trycmd
    "%r failed: close() returned %r, stdout is %r." File "c:\Python23\lib\", line 302, in failUnlessEqual
    raise self.failureException, AssertionError: 'lino prn2pdf -b -o "c:\\docume~1\\luc\\locals~1\\temp
\\4.pdf" "c:\\drives\\t\\svnwork\\lino\\trunk\\tests\\testdata\\textpr
inter\\4.prn"' failed: close() returned 1, stdout is ''.
Ran 2 tests in 4.948s

I don't understand why the fourth command fails when launched via os.popen(). If I launch the same command manually or from a batch file, it always works. For example:

@echo off
call lino prn2pdf -b -o "c:\docume~1\luc\locals~1\temp\4.pdf" 
echo %errorlevel%

This will output 0.

It must have to do with the content of file 4.prn because if I do...

ren 4.prn tmp.prn
ren 2.prn 4.prn
ren tmp.prn 2.prn

...and run the test again, then it fails on 2.prn.

Refering articles:

Copyright 2001-2007 Luc Saffre.
Generated 2007-06-07 16:22:49