summaryrefslogtreecommitdiffstats
path: root/test/Variables/Variables.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2022-02-01 19:55:53 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2022-02-01 19:55:53 (GMT)
commit8dff0099875bdc8e9f526c8a3ee9baf3b9fc6a5f (patch)
tree1aed3f127ffc5451f844983dfe42659e20f643fe /test/Variables/Variables.py
parent9ed902a5989b6974af4be1957bbe829ba31ec7ff (diff)
downloadSCons-8dff0099875bdc8e9f526c8a3ee9baf3b9fc6a5f.zip
SCons-8dff0099875bdc8e9f526c8a3ee9baf3b9fc6a5f.tar.gz
SCons-8dff0099875bdc8e9f526c8a3ee9baf3b9fc6a5f.tar.bz2
Fixup DummyPopen() ( which is returned from Action._subproc() when subprocess.POpen() errors) so that it can also be used as a context manager. This is part of fixing Python 3.9(+) outputing warnings when file/other handles aren't properly closed.
Diffstat (limited to 'test/Variables/Variables.py')
-rw-r--r--test/Variables/Variables.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/Variables/Variables.py b/test/Variables/Variables.py
index 09a17d5..bb7b237 100644
--- a/test/Variables/Variables.py
+++ b/test/Variables/Variables.py
@@ -1,6 +1,8 @@
#!/usr/bin/env python
#
-# __COPYRIGHT__
+# MIT License
+#
+# Copyright The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
@@ -20,9 +22,6 @@
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-#
-
-__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons