summaryrefslogtreecommitdiffstats
path: root/test/Java/java_version_image/src6/TestSCons.java
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2018-08-13 20:55:01 (GMT)
committerMats Wichmann <mats@linux.com>2018-08-13 20:55:01 (GMT)
commita5c17eae4d5197d423a8fcef40b1d31e74439772 (patch)
treeb0922e20a922e31ba430a48bf4c55a418222c234 /test/Java/java_version_image/src6/TestSCons.java
parent5d21b1cac7605f4df43ddc6db30011e6d1006859 (diff)
downloadSCons-a5c17eae4d5197d423a8fcef40b1d31e74439772.zip
SCons-a5c17eae4d5197d423a8fcef40b1d31e74439772.tar.gz
SCons-a5c17eae4d5197d423a8fcef40b1d31e74439772.tar.bz2
Quiet Py3.6+ ResourceWarnings on tests
When a test calls _subproc to set up a subprocess.Popen call, if the arg vector contains the string 'devnull' os.devnull is opened and the resulting file object is stored in the kw vector prior to passing it to Popen. Reigster a close() call with atexit in this case. Eliminates a lot of Python 3.6+ ResourceWarning messages - 336 on this machine. Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'test/Java/java_version_image/src6/TestSCons.java')
0 files changed, 0 insertions, 0 deletions