--- a/cubicweb/devtools/test/unittest_devctl.py Fri Feb 05 16:49:22 2016 +0100
+++ b/cubicweb/devtools/test/unittest_devctl.py Fri Jan 29 17:22:25 2016 +0100
@@ -17,7 +17,6 @@
# with CubicWeb. If not, see <http://www.gnu.org/licenses/>.
"""unit tests for cubicweb-ctl commands from devtools"""
-import os.path as osp
import sys
import tempfile
import shutil
@@ -29,12 +28,9 @@
"""test case for devtools commands"""
def test_newcube(self):
- cwctl = osp.abspath(osp.join(osp.dirname(__file__),
- '../../../bin/cubicweb-ctl'))
-
tmpdir = tempfile.mkdtemp(prefix="temp-cwctl-newcube")
try:
- cmd = [sys.executable, cwctl, 'newcube',
+ cmd = [sys.executable, '-m', 'cubicweb', 'newcube',
'--directory', tmpdir, 'foo']
proc = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=STDOUT)
stdout, _ = proc.communicate(b'short_desc\n')