Salome HOME
updated copyright message
[modules/kernel.git] / bin / appliskel / tests / salomeInstance / instances.py
old mode 100644 (file)
new mode 100755 (executable)
index 50ecfa8..d34230f
@@ -1,4 +1,5 @@
-# Copyright (C) 2015-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+#!/usr/bin/env python3
+# Copyright (C) 2015-2023  CEA, EDF, OPEN CASCADE
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -91,13 +92,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)