[commit] r1480 - in trunk/Tests/GPyUnit: GME_310 Regr/Mga
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Tue Aug 23 17:35:44 CDT 2011
Author: ksmyth
Date: Tue Aug 23 17:35:44 2011
New Revision: 1480
Log:
More cleanup. Use DispatchEx because of running objects table
Modified:
trunk/Tests/GPyUnit/GME_310/__init__.py
trunk/Tests/GPyUnit/Regr/Mga/tc2.py
trunk/Tests/GPyUnit/Regr/Mga/tc3.py
trunk/Tests/GPyUnit/Regr/Mga/tc4.py
Modified: trunk/Tests/GPyUnit/GME_310/__init__.py
==============================================================================
--- trunk/Tests/GPyUnit/GME_310/__init__.py Tue Aug 23 17:34:19 2011 (r1479)
+++ trunk/Tests/GPyUnit/GME_310/__init__.py Tue Aug 23 17:35:44 2011 (r1480)
@@ -45,6 +45,7 @@
self.project.CommitTransaction()
self.project.Save("MGA=" + _adjacent_file(self.output_file))
self.territory.Destroy()
+ self.project.Close()
win32com.client.gencache.GetClassForCLSID = _savedGetClassForCLSID
import util.mgadiff as mgadiff
Modified: trunk/Tests/GPyUnit/Regr/Mga/tc2.py
==============================================================================
--- trunk/Tests/GPyUnit/Regr/Mga/tc2.py Tue Aug 23 17:34:19 2011 (r1479)
+++ trunk/Tests/GPyUnit/Regr/Mga/tc2.py Tue Aug 23 17:35:44 2011 (r1480)
@@ -15,7 +15,7 @@
def setUp( self ): ## hook method: creates a new mga file all the times, and deletes one if existing
- self.project = win32com.client.Dispatch("Mga.MgaProject")
+ self.project = win32com.client.DispatchEx("Mga.MgaProject")
self.mganame = "_tc2_all_sf.mga"
Modified: trunk/Tests/GPyUnit/Regr/Mga/tc3.py
==============================================================================
--- trunk/Tests/GPyUnit/Regr/Mga/tc3.py Tue Aug 23 17:34:19 2011 (r1479)
+++ trunk/Tests/GPyUnit/Regr/Mga/tc3.py Tue Aug 23 17:35:44 2011 (r1480)
@@ -25,7 +25,7 @@
# this file will be created:
mganame = "_tc3_A_sf.mga"
- project = win32com.client.Dispatch("Mga.MgaProject")
+ project = win32com.client.DispatchEx("Mga.MgaProject")
try:
project.Create( "MGA=" + mganame, "SF")
@@ -63,7 +63,7 @@
# this file will be created:
mganame = "_tc4_B_sf.mga"
- project = win32com.client.Dispatch("Mga.MgaProject")
+ project = win32com.client.DispatchEx("Mga.MgaProject")
try:
project.Create( "MGA=" + mganame, "SF")
Modified: trunk/Tests/GPyUnit/Regr/Mga/tc4.py
==============================================================================
--- trunk/Tests/GPyUnit/Regr/Mga/tc4.py Tue Aug 23 17:34:19 2011 (r1479)
+++ trunk/Tests/GPyUnit/Regr/Mga/tc4.py Tue Aug 23 17:35:44 2011 (r1480)
@@ -618,7 +618,7 @@
"""
mganame = "_tc4_E2_sf.mga"
- self.project = project = win32com.client.Dispatch("Mga.MgaProject")
+ self.project = project = win32com.client.DispatchEx("Mga.MgaProject")
charform_guid = self.register_old_sf_par()
More information about the gme-commit
mailing list