Author: phd
Date: Sat Oct 6 10:49:42 2012
New Revision: 4554
Log:
Merged revision 4552 from branch 1.2:
drop table in case the test is being run for the second time on the same DB
Modified:
SQLObject/trunk/sqlobject/tests/test_perConnection.py
Modified: SQLObject/trunk/sqlobject/tests/test_perConnection.py
==============================================================================
--- SQLObject/trunk/sqlobject/tests/test_perConnection.py Sat Oct 6 10:49:16 2012 (r4553)
+++ SQLObject/trunk/sqlobject/tests/test_perConnection.py Sat Oct 6 10:49:42 2012 (r4554)
@@ -10,6 +10,7 @@
def test_perConnection():
connection = getConnection()
+ TestPerConnection.dropTable(connection=connection, ifExists=True)
TestPerConnection.createTable(connection=connection)
TestPerConnection(test='test', connection=connection)
assert len(list(TestPerConnection.select(TestPerConnection.q.test=='test', connection=connection))) == 1
|