[ZPT] CVS: Packages/TAL - test_files.py:1.2

evan@serenade.digicool.com evan@serenade.digicool.com
Fri, 18 May 2001 13:50:20 -0400


Update of /cvs-repository/Packages/TAL/tests
In directory serenade:/home/evan/Zope/pt/lib/python/TAL/tests

Modified Files:
	test_files.py 
Log Message:
Add test to illustrate METAL bug



--- Updated File test_files.py in package Packages/TAL --
--- test_files.py	2001/04/27 20:09:13	1.1
+++ test_files.py	2001/05/18 17:49:49	1.2
@@ -18,9 +18,13 @@
         unittest.TestCase.__init__(self)
 
     def runTest(self):
-        sys.stdout.write(os.path.basename(self.__file) + " ")
+        basename = os.path.basename(self.__file)
+        sys.stdout.write(basename + " ")
         sys.stdout.flush()
-        sys.argv = ["", "-Q", self.__file]
+        if basename[:10] == 'test_metal':
+            sys.argv = ["", "-Q", "-m", self.__file]
+        else:
+            sys.argv = ["", "-Q", self.__file]
         pwd = os.getcwd()
         try:
             try: