]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Porting Python 3: Fix test #14: KERNEL_SALOME_INSTANCE_instances ngr/python3_dev
authorGilles DAVID <gilles-g.david@edf.fr>
Wed, 7 Jun 2017 06:18:23 +0000 (08:18 +0200)
committerGilles DAVID <gilles-g.david@edf.fr>
Wed, 7 Jun 2017 06:18:23 +0000 (08:18 +0200)
bin/appliskel/tests/salomeInstance/instances.py

index 50ecfa80d7b90528fb0cce416b08ec040495988a..02a52cc2e80ead9c0872a34db1abd3944801d1d4 100644 (file)
@@ -91,13 +91,13 @@ class TestLauncher(unittest.TestCase):
 
     # Connect to one instance
     import runConsole
-    port = all_instances[len(all_instances)/2].get_port()
+    port = all_instances[len(all_instances)//2].get_port()
     print("Connect to instance running on port", port)
     self.__connectToInstance(port)
 
     # Connect to another instance
     import runConsole
-    port = all_instances[len(all_instances)/4].get_port()
+    port = all_instances[len(all_instances)//4].get_port()
     print("Connect to instance running on port", port)
     self.__connectToInstance(port)