diff options
author | William Deegan <bill@baddogconsulting.com> | 2022-02-01 19:55:53 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2022-02-01 19:55:53 (GMT) |
commit | 8dff0099875bdc8e9f526c8a3ee9baf3b9fc6a5f (patch) | |
tree | 1aed3f127ffc5451f844983dfe42659e20f643fe /test/Variables/Variables.py | |
parent | 9ed902a5989b6974af4be1957bbe829ba31ec7ff (diff) | |
download | SCons-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.py | 7 |
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 |