diff options
author | Raymond Hettinger <python@rcn.com> | 2004-09-27 15:29:05 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-09-27 15:29:05 (GMT) |
commit | ffdb8bb99c4017152a9dca70669f9d6b9831d454 (patch) | |
tree | 561cf9198f1aa05d12d126a1a4afedc549060224 /Lib/test | |
parent | 4837a223eea09681f0bf41d41882cad5ade0f6ab (diff) | |
download | cpython-ffdb8bb99c4017152a9dca70669f9d6b9831d454.zip cpython-ffdb8bb99c4017152a9dca70669f9d6b9831d454.tar.gz cpython-ffdb8bb99c4017152a9dca70669f9d6b9831d454.tar.bz2 |
Use floor division operator.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_deque.py | 2 | ||||
-rw-r--r-- | Lib/test/test_enumerate.py | 2 | ||||
-rw-r--r-- | Lib/test/test_itertools.py | 2 | ||||
-rw-r--r-- | Lib/test/test_random.py | 2 | ||||
-rw-r--r-- | Lib/test/test_set.py | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_deque.py b/Lib/test/test_deque.py index de775dc..c0024ac 100644 --- a/Lib/test/test_deque.py +++ b/Lib/test/test_deque.py @@ -385,7 +385,7 @@ class E: def __iter__(self): return self def next(self): - 3/0 + 3 // 0 class S: 'Test immediate stop' diff --git a/Lib/test/test_enumerate.py b/Lib/test/test_enumerate.py index 200779f..18c2bb9 100644 --- a/Lib/test/test_enumerate.py +++ b/Lib/test/test_enumerate.py @@ -50,7 +50,7 @@ class E: def __iter__(self): return self def next(self): - 3/0 + 3 // 0 class N: 'Iterator missing next()' diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py index 6ce758a..6ae6785 100644 --- a/Lib/test/test_itertools.py +++ b/Lib/test/test_itertools.py @@ -476,7 +476,7 @@ class E: def __iter__(self): return self def next(self): - 3/0 + 3 // 0 class S: 'Test immediate stop' diff --git a/Lib/test/test_random.py b/Lib/test/test_random.py index b8d0b5d..9c2e0d0 100644 --- a/Lib/test/test_random.py +++ b/Lib/test/test_random.py @@ -79,7 +79,7 @@ class TestBasicOps(unittest.TestCase): def factorial(n): return reduce(int.__mul__, xrange(1, n), 1) for k in xrange(n): - expected = factorial(n) / factorial(n-k) + expected = factorial(n) // factorial(n-k) perms = {} for i in xrange(trials): perms[tuple(self.gen.sample(pop, k))] = None diff --git a/Lib/test/test_set.py b/Lib/test/test_set.py index a4cbfc5..01dded6 100644 --- a/Lib/test/test_set.py +++ b/Lib/test/test_set.py @@ -1241,7 +1241,7 @@ class E: def __iter__(self): return self def next(self): - 3/0 + 3 // 0 class S: 'Test immediate stop' |