# HG changeset patch # User Denis Laxalde # Date 1518700811 -3600 # Node ID d2e9999861a5f2a434b2441f0a070c94901b5d56 # Parent 9d08f89a3d857e314b3e3f322e77c6d6818b99fb [test] Drop an unused function in cwconfig tests diff -r 9d08f89a3d85 -r d2e9999861a5 cubicweb/test/unittest_cwconfig.py --- a/cubicweb/test/unittest_cwconfig.py Thu Feb 15 14:19:15 2018 +0100 +++ b/cubicweb/test/unittest_cwconfig.py Thu Feb 15 14:20:11 2018 +0100 @@ -38,16 +38,6 @@ CubicWebConfiguration, _expand_modname) -def unabsolutize(path): - parts = path.split(os.sep) - for i, part in reversed(tuple(enumerate(parts))): - if part.startswith('cubicweb_'): - return os.sep.join([part[len('cubicweb_'):]] + parts[i + 1:]) - if part.startswith('cubicweb') or part == 'legacy_cubes': - return os.sep.join(parts[i + 1:]) - raise Exception('duh? %s' % path) - - def templibdir(func): """create a temporary directory and insert it in sys.path""" @functools.wraps(func)