[commit] r1557 - trunk/Tests/GPyUnit

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Wed Sep 21 09:03:22 CDT 2011


Author: ksmyth
Date: Wed Sep 21 09:03:22 2011
New Revision: 1557

Log:
Test for Exit() failing

Added:
   trunk/Tests/GPyUnit/test_gmeoleapp.py
Modified:
   trunk/Tests/GPyUnit/run_tests.py

Modified: trunk/Tests/GPyUnit/run_tests.py
==============================================================================
--- trunk/Tests/GPyUnit/run_tests.py	Wed Sep 21 09:03:12 2011	(r1556)
+++ trunk/Tests/GPyUnit/run_tests.py	Wed Sep 21 09:03:22 2011	(r1557)
@@ -4,6 +4,7 @@
 # python -m unittest Regr.Mga.tc7
 _tests = unittest.defaultTestLoader.loadTestsFromNames((
  'test_registrar',
+ 'test_gmeoleapp',
  'GME_297.suite',
  'GME_310.suite',
  'Regr.Mga.tc1',

Added: trunk/Tests/GPyUnit/test_gmeoleapp.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ trunk/Tests/GPyUnit/test_gmeoleapp.py	Wed Sep 21 09:03:22 2011	(r1557)
@@ -0,0 +1,12 @@
+import unittest
+
+class TestGMEOLEApp(unittest.TestCase):
+    def test_Exit(self):
+        import win32com.client
+        gme = win32com.client.DispatchEx("GME.Application")
+        gme.Exit()
+        # under _DEBUG, GME.exe does not exist until Release()ed
+        del(gme)
+
+if __name__ == "__main__":
+        unittest.main()


More information about the gme-commit mailing list