Salome HOME
Cannot create local file when testing from packaging
authorCédric Aguerre <cedric.aguerre@edf.fr>
Thu, 27 Jul 2017 16:25:56 +0000 (18:25 +0200)
committerCédric Aguerre <cedric.aguerre@edf.fr>
Thu, 27 Jul 2017 16:25:56 +0000 (18:25 +0200)
bin/appliskel/tests/concurrentSession/TestConcurrentSession.py
bin/appliskel/tests/concurrentSession/hello.py [new file with mode: 0644]

index 095a97be78a4dff470a2261445b81c3c8d046f8b..59ff65c806fb0f5e814bc92714e4c08deb665d60 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2013-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2013-2017  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -122,9 +122,5 @@ class TestConcurrentLaunch(unittest.TestCase):
 #
 
 if __name__ == "__main__":
-  if not os.path.isfile("hello.py"):
-    with open("hello.py", "w") as f:
-      f.write("print('Hello!')")
-
   unittest.main()
 #
diff --git a/bin/appliskel/tests/concurrentSession/hello.py b/bin/appliskel/tests/concurrentSession/hello.py
new file mode 100644 (file)
index 0000000..12d3639
--- /dev/null
@@ -0,0 +1 @@
+print('Hello!')