tests/tools/test_CustomIntCtrl.py
changeset 2437 105c20fdeb19
parent 1881 091005ec69c4
--- a/tests/tools/test_CustomIntCtrl.py	Fri Oct 05 13:48:54 2018 +0300
+++ b/tests/tools/test_CustomIntCtrl.py	Fri Oct 05 14:22:01 2018 +0300
@@ -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()