#1094: patch for problem with DBTest trying to drop tables that don't exist
------------------------+---------------------------------------------------
Reporter: nerkles | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 1.0b1
Component: TurboGears | Version:
Severity: normal | Keywords: testutil.py nose DBTest
------------------------+---------------------------------------------------
here is a diff against the 1.0 branch (really it only changes 1 line)
{{{
Index: CHANGELOG.txt
===================================================================
--- CHANGELOG.txt (revision 1815)
+++ CHANGELOG.txt (working copy)
@@ -8,6 +8,10 @@
*Fixes*
+* testutil's tearDown for SQLObject confirms the existence of a table
+ before attempting to drop it. This caused problems if you used an
explicit
+ object for the intermediateTable in RelatedJoins.
+
* Exceptions raised when SA flushes are now dispatched with TG's
errorhandling.
*Project Updates*
Index: turbogears/testutil.py
===================================================================
--- turbogears/testutil.py (revision 1815)
+++ turbogears/testutil.py (working copy)
@@ -91,7 +91,7 @@
if inspect.isclass(item) and issubclass(item,
sqlobject.SQLObject) and item != sqlobject.SQLObject \
and item != InheritableSQLObject:
- item.dropTable()
+ item.dropTable(ifExists=True)
def reset_cp():
cherrypy.root = None
}}}
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/1094>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---