bernhard: thuban/test test_stringrepresentation.py,NONE,1.1

Bernhard Herzog bh at intevation.de
Tue Oct 18 11:19:32 CEST 2005


cvs at intevation.de writes:

> class TestInternalEncoding(unittest.TestCase):
>     """Test around the thuban default encoding."""
>     def test_notice_bad_internalencoding(self):
>     	bad_encoding="this-never-is-a-valid-encoding"
>     	self.assertRaises(LookupError, 
> 			Thuban.set_internal_encoding,bad_encoding)

This test sets the default encoding permanently as a side-effect causing
lots of other tests to fail with an error.  Please fix this and write
tests so that they don't affect other tests.  Typical test failure now
is:

======================================================================
ERROR: test_load.TestSymbolSize.test
----------------------------------------------------------------------
[...]
LookupError: unknown encoding: this-never-is-a-valid-encoding



   Bernhard

-- 
Intevation GmbH                                 http://intevation.de/
Skencil                                           http://skencil.org/
Thuban                                  http://thuban.intevation.org/




More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)