--- a/tests/tools/test_CustomIntCtrl.py Fri Nov 23 11:01:20 2018 +0100
+++ b/tests/tools/test_CustomIntCtrl.py Fri Nov 23 12:13:24 2018 +0100
@@ -24,6 +24,7 @@
from __future__ import absolute_import
+from __future__ import division
import unittest
import time
@@ -66,7 +67,7 @@
def testCorrectValue(self):
"""Test case if no limiting is necessary"""
self.AddControls()
- val = (self.max_val + self.min_val) / 2
+ val = (self.max_val + self.min_val) // 2
self.int_ctrl.SetValue(val)
self.ProcessEvents()
@@ -86,7 +87,7 @@
self.int_ctrl.Bind(controls.CustomIntCtrl.EVT_CUSTOM_INT, EventHandler)
- val = (self.max_val + self.min_val) / 2
+ val = (self.max_val + self.min_val) // 2
self.int_ctrl.SetValue(val)
self.ProcessEvents()