cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cassandra-dbapi2.apache-extras....@codespot.com
Subject [cassandra-dbapi2] push by john.eri...@gmail.com - print number of results when assert fails on 2011-12-14 22:45 GMT
Date Wed, 14 Dec 2011 22:45:16 GMT
Revision: ac8f1dc5458d
Author:   Eric Evans <eevans@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,

Mime
View raw message