Sfoglia il codice sorgente

[3.1] Attempt to fix build

Ask Solem 9 anni fa
parent
commit
b642dd287f
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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):
         tref = timer2.Entry(lambda x: x, (1, ), {})
         tref.cancel()
-        self.assertTrue(tref.canceled)
+        self.assertTrue(tref.cancelled)
 
     def test_repr(self):
         tref = timer2.Entry(lambda x: x(1, ), {})
@@ -118,7 +118,7 @@ class test_Timer(Case):
             args2, _ = t.schedule.enter_after.call_args_list[1]
             sec2, tref2, _ = args2
             self.assertEqual(sec2, 0.03)
-            tref2.canceled = True
+            tref2.cancelled = True
             tref2()
 
             self.assertEqual(t.schedule.enter_after.call_count, 2)