Unshift the world
[naja.git] / naja / tests / test_actions.py
index d2c723a6b4082c0135da73565a44d0862afab361..69ed8819ed54c80be1d87e89fe6eef8f931f931b 100644 (file)
@@ -8,7 +8,10 @@ from naja import actions
 
 class TestActions(TestCase):
     def make_player(self, *bits):
-        return Player(sum(1 << bit for bit in bits), None)
+        player_bits = 0
+        for bit in bits:
+            player_bits |= bit
+        return Player(player_bits, None)
 
     def make_board(self, player_bits=None, locations=None):
         if locations is None: