Skip Menu |

This queue is for tickets about the Spreadsheet-HTML CPAN distribution.

Report information
The Basics
Id: 104949
Status: resolved
Priority: 0/
Queue: Spreadsheet-HTML

People
Owner: JEFFA [...] cpan.org
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.16



Subject: Test fails with non-English locale
With 0.15 and a German locale I see errors like: # Failed test 'handle missing CSV file' # at t/30-errors.t line 10. # got: '<table><tr><th>cannot load foo.csv</th></tr><tr><td>Datei oder Verzeichnis nicht gefunden</td></tr></table>' # expected: '<table><tr><th>cannot load foo.csv</th></tr><tr><td>No such file or directory</td></tr></table>' # Failed test 'handle missing JSON file' # at t/30-errors.t line 18. # got: '<table><tr><th>cannot load foo.json</th></tr><tr><td>Datei oder Verzeichnis nicht gefunden</td></tr></table>' # expected: '<table><tr><th>cannot load foo.json</th></tr><tr><td>No such file or directory</td></tr></table>' # Looks like you failed 2 tests of 5. t/30-errors.t .........
On 2015-06-03 17:56:32, SREZIC wrote: Show quoted text
> With 0.15 and a German locale I see errors like: > > # Failed test 'handle missing CSV file' > # at t/30-errors.t line 10. > # got: '<table><tr><th>cannot load > foo.csv</th></tr><tr><td>Datei oder Verzeichnis nicht > gefunden</td></tr></table>' > # expected: '<table><tr><th>cannot load > foo.csv</th></tr><tr><td>No such file or directory</td></tr></table>' > > # Failed test 'handle missing JSON file' > # at t/30-errors.t line 18. > # got: '<table><tr><th>cannot load > foo.json</th></tr><tr><td>Datei oder Verzeichnis nicht > gefunden</td></tr></table>' > # expected: '<table><tr><th>cannot load > foo.json</th></tr><tr><td>No such file or directory</td></tr></table>' > # Looks like you failed 2 tests of 5. > t/30-errors.t .........
The error does not happen with perl >= 5.21 (probably because of changes how $! is handled). See: http://matrix.cpantesters.org/?dist=Spreadsheet-HTML%200.15
But i thought everyone used English?!?!?! Bad test ... i'll find a more generic way to do this. Sorry and thanks. :) On Thu Jun 04 01:23:12 2015, SREZIC wrote: Show quoted text
> On 2015-06-03 17:56:32, SREZIC wrote:
> > With 0.15 and a German locale I see errors like: > > > > # Failed test 'handle missing CSV file' > > # at t/30-errors.t line 10. > > # got: '<table><tr><th>cannot load > > foo.csv</th></tr><tr><td>Datei oder Verzeichnis nicht > > gefunden</td></tr></table>' > > # expected: '<table><tr><th>cannot load > > foo.csv</th></tr><tr><td>No such file or directory</td></tr></table>' > > > > # Failed test 'handle missing JSON file' > > # at t/30-errors.t line 18. > > # got: '<table><tr><th>cannot load > > foo.json</th></tr><tr><td>Datei oder Verzeichnis nicht > > gefunden</td></tr></table>' > > # expected: '<table><tr><th>cannot load > > foo.json</th></tr><tr><td>No such file or > > directory</td></tr></table>' > > # Looks like you failed 2 tests of 5. > > t/30-errors.t .........
> > The error does not happen with perl >= 5.21 (probably because of > changes how $! is handled). See: > http://matrix.cpantesters.org/?dist=Spreadsheet-HTML%200.15
This should be fixed in v0.16. Thanks again!