From 54a86e127136c9eff98f65ad9eabd21262e9ff15 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Thu, 28 Aug 2014 18:15:47 +0300 Subject: [PATCH] fix `/` -> `//` --- tests/test_ecc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_ecc.py b/tests/test_ecc.py index 13ce26b..d0d3631 100644 --- a/tests/test_ecc.py +++ b/tests/test_ecc.py @@ -20,10 +20,10 @@ def test_errors(): data = bytearray(range(244)) blocks = list(ecc.encode(data)) assert len(blocks) == 2 - for i in range(ecc.DEFAULT_NSYM/2): + for i in range(ecc.DEFAULT_NSYM // 2): blocks[0][i] = blocks[0][i] ^ 0xFF - i = ecc.DEFAULT_NSYM/2 + i = ecc.DEFAULT_NSYM // 2 try: blocks[0][i] = blocks[0][i] ^ 0xFF concat(ecc.decode(blocks))