bh: thuban/test postgissupport.py,1.7.2.1,1.7.2.2

cvs@intevation.de cvs at intevation.de
Thu Dec 16 20:21:55 CET 2004


Author: bh

Update of /thubanrepository/thuban/test
In directory doto:/tmp/cvs-serv29853/test

Modified Files:
      Tag: thuban-1-0-branch
	postgissupport.py 
Log Message:
(PostgreSQLServer.is_running)
(skip_if_addgeometrycolumn_does_not_use_quote_ident): Doc-string
fixes backported from HEAD


Index: postgissupport.py
===================================================================
RCS file: /thubanrepository/thuban/test/postgissupport.py,v
retrieving revision 1.7.2.1
retrieving revision 1.7.2.2
diff -u -d -r1.7.2.1 -r1.7.2.2
--- postgissupport.py	16 Dec 2004 19:17:51 -0000	1.7.2.1
+++ postgissupport.py	16 Dec 2004 19:21:53 -0000	1.7.2.2
@@ -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"])
 
@@ -535,7 +539,7 @@
 
     The test performed by this function is a bit simplistic because it
     only tests whether the string 'quote_ident' occurs anywhere in the
-    postgis.sql file. This will hopefully works because when this was
+    postgis.sql file. This will hopefully work because when this was
     fixed in postgis CVS AddGeometryColumn was the first function to use
     quote_ident.
     """





More information about the Thuban-devel mailing list

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