--- a/cubicweb/devtools/test/unittest_i18n.py Fri Feb 05 16:49:22 2016 +0100
+++ b/cubicweb/devtools/test/unittest_i18n.py Fri Jan 29 17:22:25 2016 +0100
@@ -62,11 +62,10 @@
else:
env['PYTHONPATH'] = ''
env['PYTHONPATH'] += DATADIR
- cwctl = osp.abspath(osp.join(osp.dirname(__file__),
- '../../../bin/cubicweb-ctl'))
with open(os.devnull, 'w') as devnull:
- subprocess.check_call([sys.executable, cwctl, 'i18ncube', 'i18ntestcube'],
- env=env, stdout=devnull)
+ subprocess.check_call(
+ [sys.executable, '-m', 'cubicweb', 'i18ncube', 'i18ntestcube'],
+ env=env, stdout=devnull)
cube = osp.join(DATADIR, 'cubes', 'i18ntestcube')
msgs = load_po(osp.join(cube, 'i18n', 'en.po.ref'))
newmsgs = load_po(osp.join(cube, 'i18n', 'en.po'))