bh: thuban/test postgissupport.py,1.9,1.10
cvs@intevation.de
cvs at intevation.de
Wed Dec 15 12:12:13 CET 2004
Author: bh
Update of /thubanrepository/thuban/test
In directory doto:/tmp/cvs-serv23799/test
Modified Files:
postgissupport.py
Log Message:
(PostgreSQLServer.is_running): Fix typo
in the doc string and rephrase it a little.
Index: postgissupport.py
===================================================================
RCS file: /thubanrepository/thuban/test/postgissupport.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- postgissupport.py 12 Mar 2004 12:59:33 -0000 1.9
+++ postgissupport.py 15 Dec 2004 11:12:11 -0000 1.10
@@ -184,12 +184,16 @@
raise RuntimeError("postmaster didn't start")
def is_running(self):
- """Return true a postmaster process is running on self.dbdir
+ """Return whether a postmaster process is running on self.dbdir
- This method runs pg_ctl status on the dbdir so even if the
- object has just been created it is possible that this method
- returns true if there's still a postmaster process running for
- self.dbdir.
+ This method runs pg_ctl status on the dbdir and returns True if
+ that command succeeds and False otherwise.
+
+ Note that it is possible that this method returns true even if
+ the PostgreSQLServer instance has just been created and
+ createdb() has not been called yet. This can happen, for
+ instance, if the server has been started manually for debugging
+ purposes after a test suite run.
"""
return run_boolean_command(["pg_ctl", "-D", self.dbdir, "status"])
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)