[commit] r1505 - in trunk/Tests/GPyUnit: . util

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Wed Sep 7 09:13:26 CDT 2011


Author: ksmyth
Date: Wed Sep  7 09:13:24 2011
New Revision: 1505

Log:
Comments

Modified:
   trunk/Tests/GPyUnit/run_tests.py
   trunk/Tests/GPyUnit/util/__init__.py

Modified: trunk/Tests/GPyUnit/run_tests.py
==============================================================================
--- trunk/Tests/GPyUnit/run_tests.py	Wed Sep  7 09:10:39 2011	(r1504)
+++ trunk/Tests/GPyUnit/run_tests.py	Wed Sep  7 09:13:24 2011	(r1505)
@@ -1,5 +1,7 @@
 import unittest
 
+# it is also possible to run tests like this:
+# python -m unittest Regr.Mga.tc7
 _tests = unittest.defaultTestLoader.loadTestsFromNames((
  'test_registrar',
  'GME_297.suite',

Modified: trunk/Tests/GPyUnit/util/__init__.py
==============================================================================
--- trunk/Tests/GPyUnit/util/__init__.py	Wed Sep  7 09:10:39 2011	(r1504)
+++ trunk/Tests/GPyUnit/util/__init__.py	Wed Sep  7 09:13:24 2011	(r1505)
@@ -14,12 +14,14 @@
     def ret(*args, **kwargs):
         with disable_early_binding():
             f(*args, **kwargs)
+    # n.b. unittest reads __name__
     ret.__name__ = f.__name__
     return ret
 
 def register_xmp(xmpfile):
     import os.path
     predef = { 'SF': os.path.join(os.environ['GME_ROOT'], "Paradigms", "SF", "SF.xmp"), 
+    # FIXME: doesn't work with GME from installer
     'MetaGME': os.path.join(os.environ['GME_ROOT'], "Paradigms", "MetaGME", "Paradigm", "MetaGME.xmp") }
     if not os.path.isfile(xmpfile):
         xmpfile = predef[xmpfile]


More information about the gme-commit mailing list