diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-03-13 20:44:31 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-03-13 20:44:31 (GMT) |
commit | 3fdddad8565973faea1f4e9a9aaf6101c4086a7e (patch) | |
tree | 877d1e7c6566404e47660a96916b7eb80949f554 /QMTest | |
parent | 696b6317906f07b9f473bbbdc416ebf81876dbf8 (diff) | |
download | SCons-3fdddad8565973faea1f4e9a9aaf6101c4086a7e.zip SCons-3fdddad8565973faea1f4e9a9aaf6101c4086a7e.tar.gz SCons-3fdddad8565973faea1f4e9a9aaf6101c4086a7e.tar.bz2 |
added TestSCons.unlink_sconsignfile(name) method to append .p3 to expected file name on py3. about 10 tests need to be changed to use this
Diffstat (limited to 'QMTest')
-rw-r--r-- | QMTest/TestSCons.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/QMTest/TestSCons.py b/QMTest/TestSCons.py index 76b903f..a8651d9 100644 --- a/QMTest/TestSCons.py +++ b/QMTest/TestSCons.py @@ -648,6 +648,21 @@ class TestSCons(TestCommon): result.extend(sorted(glob.glob(p))) return result + def unlink_sconsignfile(self,name='.sconsign.dblite'): + """ + Delete sconsign file. + Note on python it seems to append .p3 to the file name so we take care of that + Parameters + ---------- + name - expected name of sconsign file + + Returns + ------- + None + """ + if sys.version_info[0] == 3: + name += '.p3' + self.unlink(name) def java_ENV(self, version=None): """ |