From 5e09c77dcffd750f2edf22243f7167e1c266cc4f Mon Sep 17 00:00:00 2001 From: Nicolas Geimer Date: Mon, 27 Mar 2017 18:31:33 +0200 Subject: [PATCH] [PY3] Fix tools testing in "salome test" --- bin/virtual_salome.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/virtual_salome.py b/bin/virtual_salome.py index 1be8dbf8e..143d541c5 100755 --- a/bin/virtual_salome.py +++ b/bin/virtual_salome.py @@ -380,7 +380,8 @@ def link_extra_test(options): symlink(extra_test_dir, os.path.join(test_dir, options.extra_test_name)) # register extra_test for testing in CTestTestfile.cmake with open(os.path.join(test_dir, "CTestTestfile.cmake"), "ab") as f: - f.write("SUBDIRS(%s)\n"%options.extra_test_name) + aStr ="SUBDIRS(%s)\n"%options.extra_test_name + f.write(aStr.encode()) else: if verbose: print(extra_test_dir, " doesn't exist") -- 2.39.2