Re: Running installation tests

Mario Ruggier <[email protected]>
Newsgroups gmane.comp.python.db.pypgsql.user
Message-ID <[email protected]>
Hello again,

browsing the test sources, i have tried replacing the 2 occurances of
	self.cnx = PgSQL.connect(database='template1')
with
	self.cnx = 
PgSQL.connect(database='template1',user='xxx',password='xxx')
where xxx/xxx are a valid user/passwd on postgres.
Doing this, all 66 tests run OK.

Is this how this test script is supposed to be run?
Shouldn't user/pass be then input (or config) parameters?

Regards, Mario Ruggier



On mardi, jan 21, 2003, at 23:52 Europe/Amsterdam, Mario Ruggier wrote:

> Hello,
>
> am installing pyPgSQL 2.3, and seems to be all OK. When I try to run 
> the tests (as a user
> for whom there is a postgres user with the same name), i get the 
> following error:
>
> ======================================================================
> ERROR: CheckCloseConnection (__main__.PgSQLTestCases)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "test/PgSQLTestCases.py", line 401, in setUp
>     self.cnx = PgSQL.connect(database='template1')
>   File "/usr/lib/python2.2/site-packages/pyPgSQL/PgSQL.py", line 2118, 
> in connect
>     return Connection(connInfo, client_encoding, unicode_results)
>   File "/usr/lib/python2.2/site-packages/pyPgSQL/PgSQL.py", line 2215, 
> in __init__
>     raise DatabaseError, m
> DatabaseError: fe_sendauth: no password supplied
>
> and similar error foll all subsequent tests.
>
> How do i supply him the password?
>
> Many thanks, mario
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Scholarships for Techies!
> Can't afford IT training? All 2003 ictp students receive scholarships.
> Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
> www.ictp.com/training/sourceforge.asp
> _______________________________________________
> Pypgsql-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pypgsql-users
>



-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
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.