[test] fix imports for distutils preprocessor
authorJulien Cristau <julien.cristau@logilab.fr>
Fri, 25 Apr 2014 15:21:09 +0200
changeset 1491 3cd58d2dd093
parent 1490 072edbeebb42
child 1494 81e883113eef
[test] fix imports for distutils preprocessor
test/unittest_preprocessors.py
--- a/test/unittest_preprocessors.py	Tue Apr 22 15:16:34 2014 +0200
+++ b/test/unittest_preprocessors.py	Fri Apr 25 15:21:09 2014 +0200
@@ -4,7 +4,7 @@
 
 import json
 from apycotlib import atest, writer, REGISTRY
-from apycotlib.preprocessors import distutils
+import preprocessors.apycot.distutils
 from cubicweb.utils import json_dumps
 
 class FakeCnxh(object):
@@ -23,7 +23,7 @@
     def http_get(*args, **kwargs):
         return [{'deps': 'a'}]
 
-REGISTRY['preprocessor']['python_setup'] = distutils.DistutilsProcessor
+REGISTRY['preprocessor']['python_setup'] = preprocessors.apycot.distutils.DistutilsProcessor
 
 class FakeWriter(object):
     def debug(self, msg, *args, **kwargs):