Index: Lib/test/test_datetime.py =================================================================== --- Lib/test/test_datetime.py (Revision 59093) +++ Lib/test/test_datetime.py (Arbeitskopie) @@ -225,11 +225,11 @@ eq(b*(60*24), (60*b)*24) eq(c*1000, td(0, 1)) eq(1000*c, td(0, 1)) - eq(a//7, td(1)) - eq(b//10, td(0, 6)) - eq(c//1000, td(0, 0, 1)) - eq(a//10, td(0, 7*24*360)) - eq(a//3600000, td(0, 0, 7*24*1000)) + eq(a/7, td(1)) + eq(b/10, td(0, 6)) + eq(c/1000, td(0, 0, 1)) + eq(a/10, td(0, 7*24*360)) + eq(a/3600000, td(0, 0, 7*24*1000)) def test_disallowed_computations(self): a = timedelta(42) @@ -253,8 +253,8 @@ # Divison of int by timedelta doesn't make sense. # Division by zero doesn't make sense. for zero in 0, 0: - self.assertRaises(TypeError, lambda: zero // a) - self.assertRaises(ZeroDivisionError, lambda: a // zero) + self.assertRaises(TypeError, lambda: zero / a) + self.assertRaises(ZeroDivisionError, lambda: a / zero) def test_basic_attributes(self): days, seconds, us = 1, 7, 31 Index: Modules/datetimemodule.c =================================================================== --- Modules/datetimemodule.c (Revision 59093) +++ Modules/datetimemodule.c (Arbeitskopie) @@ -2092,8 +2092,8 @@ 0, /*nb_inplace_and*/ 0, /*nb_inplace_xor*/ 0, /*nb_inplace_or*/ - delta_divide, /* nb_floor_divide */ - 0, /* nb_true_divide */ + 0, /* nb_floor_divide */ + delta_divide, /* nb_true_divide */ 0, /* nb_inplace_floor_divide */ 0, /* nb_inplace_true_divide */ };