Changeset: 30a452a4fe7c for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=30a452a4fe7c
Modified Files:
        testing/Mtest.py.in
Branch: Mar2018
Log Message:

Use integer division.


diffs (21 lines):

diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in
--- a/testing/Mtest.py.in
+++ b/testing/Mtest.py.in
@@ -1163,7 +1163,7 @@ def SkipTest(env, TST, EXT, REASON, leng
             if len(TST) <= l:
                 s = '%-*s' % (l, TST)
             else:
-                s = '%s...%s' % (TST[:l/2 - 2], TST[-(l/2 - 1):])
+                s = '%s...%s' % (TST[:l//2 - 2], TST[-(l//2 - 1):])
         else:
             s = '%-*s' % (length, TST)
         STDOUT.write('%s%s skipped (%s)\n' % (prompt(), s, REASON))
@@ -2878,7 +2878,7 @@ def DoIt(env, SERVER, CALL, TST, EXT, PR
             if len(TST) <= l:
                 s = '%-*s ' % (l, TST)
             else:
-                s = '%s...%s ' % (TST[:l/2 - 2], TST[l/2+1-l:])
+                s = '%s...%s ' % (TST[:l//2 - 2], TST[l//2+1-l:])
         else:
             s = '%-*s ' % (length, TST)
         STDOUT.write('%s%s' % (prompt(), s))
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to