Diff of /branches/MySQLdb-1.2/MySQLdb/tests/test_MySQLdb_capabilities.py [r652] .. [r653]  Maximize  Restore

  Switch to side-by-side view

--- a/branches/MySQLdb-1.2/MySQLdb/tests/test_MySQLdb_capabilities.py
+++ b/branches/MySQLdb-1.2/MySQLdb/tests/test_MySQLdb_capabilities.py
@@ -10,7 +10,7 @@
 
     db_module = MySQLdb
     connect_args = ()
-    connect_kwargs = dict(db='test', read_default_file='~/.my.cnf',
+    connect_kwargs = dict(db='test', host="127.0.0.1", user="test", #read_default_file='~/.my.cnf',
                           charset='utf8', sql_mode="ANSI,STRICT_TRANS_TABLES,TRADITIONAL")
     create_table_extra = "ENGINE=INNODB CHARACTER SET UTF8"
     leak_test = False
@@ -78,7 +78,7 @@
         try:
             self.cursor.execute("describe some_non_existent_table");
         except self.connection.ProgrammingError, msg:
-            self.failUnless(msg[0] == ER.NO_SUCH_TABLE)
+            self.assertTrue(msg[0] == ER.NO_SUCH_TABLE)
     
     def test_ping(self):
         self.connection.ping()

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks