From 729b7b80b17aca4731caac6dbe0433ad35634a45 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Aguerre?= Date: Thu, 27 Jul 2017 18:24:29 +0200 Subject: [PATCH] Cannot create local file when testing from packaging --- .../tests/concurrentSession/TestConcurrentSession.py | 6 +----- bin/appliskel/tests/concurrentSession/hello.py | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) create mode 100644 bin/appliskel/tests/concurrentSession/hello.py diff --git a/bin/appliskel/tests/concurrentSession/TestConcurrentSession.py b/bin/appliskel/tests/concurrentSession/TestConcurrentSession.py index 2a8a1275f..110a5d52f 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..54ec0a01f --- /dev/null +++ b/bin/appliskel/tests/concurrentSession/hello.py @@ -0,0 +1 @@ +print 'Hello!' -- 2.39.2