[test] fix stupd name error stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 18 Jun 2010 09:25:01 +0200
branchstable
changeset 5786 7c16a4e7a592
parent 5785 c0661b963ced
child 5789 0f969e5c579a
[test] fix stupd name error
devtools/fill.py
devtools/testlib.py
web/views/urlrewrite.py
--- a/devtools/fill.py	Fri Jun 18 09:07:41 2010 +0200
+++ b/devtools/fill.py	Fri Jun 18 09:25:01 2010 +0200
@@ -16,9 +16,8 @@
 #
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
-"""This modules defines func / methods for creating test repositories
+"""This modules defines func / methods for creating test repositories"""
 
-"""
 __docformat__ = "restructuredtext en"
 
 from random import randint, choice
--- a/devtools/testlib.py	Fri Jun 18 09:07:41 2010 +0200
+++ b/devtools/testlib.py	Fri Jun 18 09:25:01 2010 +0200
@@ -335,7 +335,7 @@
 
     def restore_connection(self):
         if not self.cnx is self._orig_cnx[0]:
-            if not cnx._closed:
+            if not self.cnx._closed:
                 self.cnx.close()
             try:
                 self._cnxs.remove(self.cnx)
--- a/web/views/urlrewrite.py	Fri Jun 18 09:07:41 2010 +0200
+++ b/web/views/urlrewrite.py	Fri Jun 18 09:25:01 2010 +0200
@@ -15,9 +15,8 @@
 #
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
-"""Rules based url rewriter component, to get configurable RESTful urls.
+"""Rules based url rewriter component, to get configurable RESTful urls"""
 
-"""
 import re
 
 from cubicweb import typed_eid