branch | 3.1 |
changeset 2027 | 85eae6a79f75 |
parent 515 | 92d95b86263e |
child 750 | 89e997bc2bf1 |
child 1015 | b5fdad9208f8 |
--- a/test/unittest_cwconfig.py Thu Jan 15 10:13:25 2009 +0100 +++ b/test/unittest_cwconfig.py Wed Jun 03 19:42:23 2009 +0200 @@ -8,7 +8,7 @@ def unabsolutize(path): parts = path.split(os.sep) - for i, part in enumerate(parts): + for i, part in reversed(tuple(enumerate(parts))): if part in ('cubicweb', 'cubes', 'cubes'): return '/'.join(parts[i+1:]) raise Exception('duh? %s' % path)