Re: Setting connection parameters in tests

"James Henstridge" <[email protected]>
Newsgroups gmane.comp.python.db.psycopg.devel
Message-ID <[email protected]>
On 15/04/2008, Jorgen Austvik - Sun Norway <[email protected]> wrote:
> James Henstridge wrote:
>
> > Hmm.  My guess is that your database cluster has been created with a
> > LATIN1, so fails on this test (my DB is configured with UTF-8).  You
> > can check this with the following SQL:
> >
> >    SHOW server_encoding;
> >
>
>  You are right - it is LATIN1.

I've committed a modified version of your patch (I moved the DSN
construction to tests/__init__.py, and didn't set default values for
host, port and user).

I've also modified the test_unicode test to exit early with a warning
if the database cluster doesn't support unicode.

James.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.