diff options
author | Adam Gross <grossag@vmware.com> | 2020-08-03 14:38:38 (GMT) |
---|---|---|
committer | Adam Gross <grossag@vmware.com> | 2020-08-03 14:38:38 (GMT) |
commit | 4d00575ac1c2af01a64de7fa25505008c67033d1 (patch) | |
tree | 00aa176453db15feac6a995badb8629a30de50d0 /SCons | |
parent | d6b2eec91edf595199af4379b9e90ed5e91c4cbb (diff) | |
download | SCons-4d00575ac1c2af01a64de7fa25505008c67033d1.zip SCons-4d00575ac1c2af01a64de7fa25505008c67033d1.tar.gz SCons-4d00575ac1c2af01a64de7fa25505008c67033d1.tar.bz2 |
[ci skip] Add some more comments
Try to clarify a few parts of the working of the test through comments.
Diffstat (limited to 'SCons')
-rw-r--r-- | SCons/Node/FSTests.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/SCons/Node/FSTests.py b/SCons/Node/FSTests.py index 6a26431..6d1a2ce 100644 --- a/SCons/Node/FSTests.py +++ b/SCons/Node/FSTests.py @@ -2096,6 +2096,10 @@ class DirTestCase(_tempdirTestCase): SCons.Node.FS.File.get_contents = get_contents_override.__get__( None, SCons.Node.FS) + # Call get_csig() to test get_contents() usage. The actual results of + # the calls to get_csig() are not relevant for this test. If any + # exceptions are raised, we must first reset the get_contents function + # before reraising it or other tests will fail too. exception = None try: f1.get_csig() @@ -2103,7 +2107,6 @@ class DirTestCase(_tempdirTestCase): f3.get_csig() except Exception as e: exception = e - print('exception %s' % e) SCons.Node.FS.File.get_contents = SCons.Node.FS.File._old_get_contents delattr(SCons.Node.FS.File, '_old_get_contents') |