From 4a3105d727e8e43ee6d4a5f6b8cf9627664154bd Mon Sep 17 00:00:00 2001 From: Mike Dirolf Date: Wed, 4 Feb 2009 09:37:11 -0500 Subject: [PATCH] print one collection name per line, to match expected output --- tools/driver_tests.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/driver_tests.py b/tools/driver_tests.py index c84e2466c..8c18bf656 100755 --- a/tools/driver_tests.py +++ b/tools/driver_tests.py @@ -87,10 +87,12 @@ def dbs(db, out): db.dbs_1.save({"foo": "bar"}) db.dbs_2.save({"psi": "phi"}) print >>out, db.name() - print >>out, sorted(db.collection_names()) + for name in sorted(db.collection_names()): + print >>out, name db.drop_collection(db.dbs_1) db.create_collection("dbs_3") - print >>out, sorted(db.collection_names()) + for name in sorted(db.collection_names()): + print >>out, name def main(test, out_file): db = Connection().driver_test_framework