浏览代码

[3.1] Attempt to fix build

Ask Solem 9 年之前
父节点
当前提交
b642dd287f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      celery/tests/utils/test_timer2.py

+ 2 - 2
celery/tests/utils/test_timer2.py

@@ -25,7 +25,7 @@ class test_Entry(Case):
     def test_cancel(self):
     def test_cancel(self):
         tref = timer2.Entry(lambda x: x, (1, ), {})
         tref = timer2.Entry(lambda x: x, (1, ), {})
         tref.cancel()
         tref.cancel()
-        self.assertTrue(tref.canceled)
+        self.assertTrue(tref.cancelled)
 
 
     def test_repr(self):
     def test_repr(self):
         tref = timer2.Entry(lambda x: x(1, ), {})
         tref = timer2.Entry(lambda x: x(1, ), {})
@@ -118,7 +118,7 @@ class test_Timer(Case):
             args2, _ = t.schedule.enter_after.call_args_list[1]
             args2, _ = t.schedule.enter_after.call_args_list[1]
             sec2, tref2, _ = args2
             sec2, tref2, _ = args2
             self.assertEqual(sec2, 0.03)
             self.assertEqual(sec2, 0.03)
-            tref2.canceled = True
+            tref2.cancelled = True
             tref2()
             tref2()
 
 
             self.assertEqual(t.schedule.enter_after.call_count, 2)
             self.assertEqual(t.schedule.enter_after.call_count, 2)