Revision: ac8f1dc5458d
Author:   Eric Evans <eev...@sym-link.com>
Date:     Wed Dec 14 14:45:39 2011
Log:      print number of results when assert fails

http://code.google.com/a/apache-extras.org/p/cassandra-dbapi2/source/detail?r=ac8f1dc5458d

Modified:
 /test/test_cql.py

=======================================
--- /test/test_cql.py   Tue Dec 13 18:16:58 2011
+++ /test/test_cql.py   Wed Dec 14 14:45:39 2011
@@ -435,7 +435,8 @@
         cursor = self.cursor
         cursor.execute('TRUNCATE StandardString1;')
cursor.execute("SELECT 'cd1' FROM StandardString1 WHERE KEY = 'kd'")
-        assert cursor.rowcount == 0
+        assert cursor.rowcount == 0, \
+            "expected empty resultset, got %d rows" % cursor.rowcount

         # truncate against non-existing CF
         assert_raises(cql.ProgrammingError,

Reply via email to