[Checkins] SVN: zope.location/trunk/ Coverage.

Tres Seaver cvs-admin at zope.org
Thu Jun 7 01:32:07 UTC 2012


Log message for revision 126646:
  Coverage.

Changed:
  _U  zope.location/trunk/
  U   zope.location/trunk/src/zope/location/location.py
  U   zope.location/trunk/src/zope/location/tests/test_doctests.py

-=-
Modified: zope.location/trunk/src/zope/location/location.py
===================================================================
--- zope.location/trunk/src/zope/location/location.py	2012-06-07 01:32:00 UTC (rev 126645)
+++ zope.location/trunk/src/zope/location/location.py	2012-06-07 01:32:04 UTC (rev 126646)
@@ -46,7 +46,6 @@
     """Ensure and return the location of an object.
 
     Updates the location's coordinates.
-
     """
     location = zope.location.interfaces.ILocation(obj)
     locate(location, parent, name)
@@ -70,7 +69,7 @@
     while l1 is not None:
         if l1 is l2:
             return True
-        l1 = l1.__parent__
+        l1 = getattr(l1, '__parent__', None)
     return False
 
 class ClassAndInstanceDescr(object):

Modified: zope.location/trunk/src/zope/location/tests/test_doctests.py
===================================================================
--- zope.location/trunk/src/zope/location/tests/test_doctests.py	2012-06-07 01:32:00 UTC (rev 126645)
+++ zope.location/trunk/src/zope/location/tests/test_doctests.py	2012-06-07 01:32:04 UTC (rev 126646)
@@ -25,6 +25,6 @@
     except ImportError:
         pass
     else:
-        suite.addTest(doctest.DocFileSuite('configure.txt'))
+        suite.addTest(doctest.DocFileSuite('../configure.txt'))
 
     return suite



More information about the checkins mailing list