summaryrefslogtreecommitdiffstats
path: root/QMTest
diff options
context:
space:
mode:
authorGreg Noel <GregNoel@tigris.org>2010-04-24 22:25:56 (GMT)
committerGreg Noel <GregNoel@tigris.org>2010-04-24 22:25:56 (GMT)
commitbcdc9a412521ae0b9f9aea7997a880af6dbda2a6 (patch)
treebbdcd3f7da00dc5fcfa712bfaf148f392ac12fda /QMTest
parented90f2420a34f20480311261cf8663803ca65b6e (diff)
downloadSCons-bcdc9a412521ae0b9f9aea7997a880af6dbda2a6.zip
SCons-bcdc9a412521ae0b9f9aea7997a880af6dbda2a6.tar.gz
SCons-bcdc9a412521ae0b9f9aea7997a880af6dbda2a6.tar.bz2
Convert to Python 3.x division rules.
Diffstat (limited to 'QMTest')
-rw-r--r--QMTest/TestCmd.py1
-rw-r--r--QMTest/TestSCons.py7
-rw-r--r--QMTest/scons_tdb.py2
3 files changed, 6 insertions, 4 deletions
diff --git a/QMTest/TestCmd.py b/QMTest/TestCmd.py
index 301e5a6..1ee5d4e 100644
--- a/QMTest/TestCmd.py
+++ b/QMTest/TestCmd.py
@@ -213,6 +213,7 @@ version.
# PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS,
# AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+from __future__ import division
__author__ = "Steven Knight <knight at baldmt dot com>"
__revision__ = "TestCmd.py 0.37.D001 2010/01/11 16:55:50 knight"
diff --git a/QMTest/TestSCons.py b/QMTest/TestSCons.py
index e35cbfe..f9e2250 100644
--- a/QMTest/TestSCons.py
+++ b/QMTest/TestSCons.py
@@ -13,6 +13,7 @@ attributes defined in this subclass.
"""
# __COPYRIGHT__
+from __future__ import division
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
@@ -994,13 +995,13 @@ class Stat:
StatList = [
Stat('memory-initial', 'kbytes',
r'Memory before reading SConscript files:\s+(\d+)',
- convert=lambda s: int(s) / 1024),
+ convert=lambda s: int(s) // 1024),
Stat('memory-prebuild', 'kbytes',
r'Memory before building targets:\s+(\d+)',
- convert=lambda s: int(s) / 1024),
+ convert=lambda s: int(s) // 1024),
Stat('memory-final', 'kbytes',
r'Memory after building targets:\s+(\d+)',
- convert=lambda s: int(s) / 1024),
+ convert=lambda s: int(s) // 1024),
Stat('time-sconscript', 'seconds',
r'Total SConscript file execution time:\s+([\d.]+) seconds'),
diff --git a/QMTest/scons_tdb.py b/QMTest/scons_tdb.py
index e2c40df..6be4696 100644
--- a/QMTest/scons_tdb.py
+++ b/QMTest/scons_tdb.py
@@ -20,7 +20,7 @@
# 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.
-#
+from __future__ import division
"""
QMTest classes to support SCons' testing and Aegis-inspired workflow.