mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
The first batch of changes recommended by the fixdiv tool. These are
mostly changes of / operators into //. Once or twice I did more or less than recommended.
This commit is contained in:
parent
b8f2274985
commit
54e54c6877
19 changed files with 38 additions and 38 deletions
|
@ -82,7 +82,7 @@ class OperatorTestCase(unittest.TestCase):
|
|||
self.assert_(a == [0, 1, 8, 9])
|
||||
|
||||
def test_div(self):
|
||||
self.failUnless(operator.div(5, 2) == 2)
|
||||
self.failUnless(operator.floordiv(5, 2) == 2)
|
||||
|
||||
def test_floordiv(self):
|
||||
self.failUnless(operator.floordiv(5, 2) == 2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue