diff options
author | Mats Wichmann <mats@linux.com> | 2019-12-29 15:28:53 (GMT) |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2019-12-30 15:30:02 (GMT) |
commit | 9368c9247952ff8a8b40da6cd15cd662cfcfdf0d (patch) | |
tree | 3befd650f088305fc3568909042dc9c981028f01 /testing | |
parent | 4d267b3046804ea7424a956980b98c14ed6e19ad (diff) | |
download | SCons-9368c9247952ff8a8b40da6cd15cd662cfcfdf0d.zip SCons-9368c9247952ff8a8b40da6cd15cd662cfcfdf0d.tar.gz SCons-9368c9247952ff8a8b40da6cd15cd662cfcfdf0d.tar.bz2 |
Get rid of remaining mktemp calls
Except for Platform/win32.py, the engine code no longer
called insecure/deprecated tempfile.mktemp. That location
is now also changed to use better methods. A couple of
vestiges of old ways (like in comments) cleaned out.
A couple of unit tests also converted - these don't have
any impact on the scons engine, of course.
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'testing')
-rw-r--r-- | testing/framework/TestCmdTests.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/testing/framework/TestCmdTests.py b/testing/framework/TestCmdTests.py index 0c7b455..48eba1e 100644 --- a/testing/framework/TestCmdTests.py +++ b/testing/framework/TestCmdTests.py @@ -2814,8 +2814,7 @@ class symlink_TestCase(TestCmdTestCase): class tempdir_TestCase(TestCmdTestCase): def setUp(self): TestCmdTestCase.setUp(self) - self._tempdir = tempfile.mktemp() - os.mkdir(self._tempdir) + self._tempdir = tempfile.mkdtemp() os.chdir(self._tempdir) def tearDown(self): |