Salome HOME
projects
/
modules
/
yacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated copyright comment
[modules/yacs.git]
/
src
/
pmml
/
pmml_swig
/
PMMLBasicsTest.py
diff --git
a/src/pmml/pmml_swig/PMMLBasicsTest.py
b/src/pmml/pmml_swig/PMMLBasicsTest.py
index abd9f58e9dc874e6d13c839a8a8854b200ab486f..cede6506b65024b447871f03b3189c29ae1e8ac6 100644
(file)
--- a/
src/pmml/pmml_swig/PMMLBasicsTest.py
+++ b/
src/pmml/pmml_swig/PMMLBasicsTest.py
@@
-1,6
+1,6
@@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
-# Copyright (C) 2007-202
1 CEA/DEN, EDF R&D
+# Copyright (C) 2007-202
4 CEA, EDF
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@
-26,18
+26,14
@@
from PMML import PMMLlib, kANN, kLR
import unittest
import os
import shutil
import unittest
import os
import shutil
+import platform
+import tempfile
class PMMLBasicsTest(unittest.TestCase):
def setUp(self):
self.resourcesDir = ".." + os.sep + "Test" + os.sep + "samples" + os.sep ;
class PMMLBasicsTest(unittest.TestCase):
def setUp(self):
self.resourcesDir = ".." + os.sep + "Test" + os.sep + "samples" + os.sep ;
- self.tmpDir = os.sep + "tmp" + os.sep + os.environ['LOGNAME'] + os.sep ;
- self.tmpDir += "PmmlUnitTest";
- self.tmpDir += os.sep ;
- if ( not os.path.exists(self.tmpDir) ):
- os.makedirs(self.tmpDir);
- pass
- pass
+ self.tmpDir = tempfile.mkdtemp(suffix="PmmlUnitTest")
def tearDown(self):
if ( os.path.exists(self.tmpDir) ):
def tearDown(self):
if ( os.path.exists(self.tmpDir) ):