[Checkins]
SVN: zope.configuration/trunk/src/zope/configuration/tests/test_xmlconfig.py
fixed a bug in a test helper function that causes test
failures in `zope.configuration` when the path of the
checkout contains the string "tests"
Andreas Zeidler
az at zitc.de
Thu Jun 28 11:33:52 EDT 2007
Log message for revision 77181:
fixed a bug in a test helper function that causes test failures in `zope.configuration` when the path of the checkout contains the string "tests"
Changed:
U zope.configuration/trunk/src/zope/configuration/tests/test_xmlconfig.py
-=-
Modified: zope.configuration/trunk/src/zope/configuration/tests/test_xmlconfig.py
===================================================================
--- zope.configuration/trunk/src/zope/configuration/tests/test_xmlconfig.py 2007-06-28 13:27:56 UTC (rev 77180)
+++ zope.configuration/trunk/src/zope/configuration/tests/test_xmlconfig.py 2007-06-28 15:33:50 UTC (rev 77181)
@@ -137,13 +137,13 @@
def clean_info_path(s):
part1 = s[:6]
part2 = s[6:s.find('"', 6)]
- part2 = part2[part2.find("tests"):]
+ part2 = part2[part2.rfind("tests"):]
part2 = part2.replace(os.sep, '/')
part3 = s[s.find('"', 6):].rstrip()
return part1+part2+part3
def clean_path(s):
- s = s[s.find("tests"):]
+ s = s[s.rfind("tests"):]
s = s.replace(os.sep, '/')
return s
More information about the Checkins
mailing list