cubicweb/server/test/unittest_utils.py
changeset 12567 26744ad37953
parent 12011 d2888fee6031
--- a/cubicweb/server/test/unittest_utils.py	Fri Apr 05 17:21:14 2019 +0200
+++ b/cubicweb/server/test/unittest_utils.py	Fri Apr 05 17:58:19 2019 +0200
@@ -17,6 +17,8 @@
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 """Tests for cubicweb.server.utils module."""
 
+import sched
+
 from cubicweb.devtools import testlib
 from cubicweb.server import utils
 
@@ -40,7 +42,7 @@
         self.assertEqual(utils.crypt_password('yyy', ''), '')
 
     def test_schedule_periodic_task(self):
-        scheduler = utils.scheduler()
+        scheduler = sched.scheduler()
         this = []
 
         def fill_this(x):