Changeset: 31339cf5ae22 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=31339cf5ae22
Modified Files:
sql/benchmarks/tpch/fileleak/Tests/delete_all.SQL.py
sql/benchmarks/tpch/fileleak/Tests/leaks.SQL.py
Branch: Feb2013
Log Message:
os.path.getsize() seems to return a Python long on 32 bits.
diffs (28 lines):
diff --git a/sql/benchmarks/tpch/fileleak/Tests/delete_all.SQL.py
b/sql/benchmarks/tpch/fileleak/Tests/delete_all.SQL.py
--- a/sql/benchmarks/tpch/fileleak/Tests/delete_all.SQL.py
+++ b/sql/benchmarks/tpch/fileleak/Tests/delete_all.SQL.py
@@ -15,7 +15,7 @@ res = (cursor.fetchall())
for (dbpath, fn, count) in res:
f = fn
fn = os.path.join(dbpath, 'bat', fn + '.tail');
- print(f,os.path.getsize(fn), count)
+ print(f, int(os.path.getsize(fn)), count)
cursor.execute('delete from lineitem;');
@@ -27,4 +27,4 @@ res = (cursor.fetchall())
for (dbpath, fn, count) in res:
f = fn
fn = os.path.join(dbpath, 'bat', fn + '.tail');
- print(f,os.path.getsize(fn), count)
+ print(f, int(os.path.getsize(fn)), count)
diff --git a/sql/benchmarks/tpch/fileleak/Tests/leaks.SQL.py
b/sql/benchmarks/tpch/fileleak/Tests/leaks.SQL.py
--- a/sql/benchmarks/tpch/fileleak/Tests/leaks.SQL.py
+++ b/sql/benchmarks/tpch/fileleak/Tests/leaks.SQL.py
@@ -15,5 +15,5 @@ res = (cursor.fetchall())
for (dbpath, fn, count) in res:
f = fn
fn = os.path.join(dbpath, 'bat', fn + '.tail');
- print(f, os.path.getsize(fn) , count)
+ print(f, int(os.path.getsize(fn)), count)
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list