From: Cédric Aguerre Date: Thu, 27 Jul 2017 16:25:56 +0000 (+0200) Subject: Cannot create local file when testing from packaging X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4fdab28cf5e7bc606b46b6b7575a3c4f1ad5da86;p=modules%2Fyacs.git Cannot create local file when testing from packaging --- diff --git a/bin/appliskel/tests/concurrentSession/TestConcurrentSession.py b/bin/appliskel/tests/concurrentSession/TestConcurrentSession.py index 095a97be7..59ff65c80 100644 --- a/bin/appliskel/tests/concurrentSession/TestConcurrentSession.py +++ b/bin/appliskel/tests/concurrentSession/TestConcurrentSession.py @@ -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 index 000000000..12d363950 --- /dev/null +++ b/bin/appliskel/tests/concurrentSession/hello.py @@ -0,0 +1 @@ +print('Hello!')