Small bugs in explicit_suite.py

Nathaniel Smith njs at pobox.com
Wed Jan 14 09:48:56 UTC 2004


Patch attached.

-- Nathaniel

-- 
"On arrival in my ward I was immediately served with lunch. `This is
what you ordered yesterday.' I pointed out that I had just arrived,
only to be told: `This is what your bed ordered.'"
  -- Letter to the Editor, The Times, September 2000
-------------- next part --------------
? results.qmr
? qm/external/__init__.pyc
? tests/regress/QMTest/regression_database.pyc
? tests/regress/QMTest/selftest.pyc
? tests/regress/tuple1/QMTest/tuple_test.pyc
? tests/results_files/QMTest/results_file_database.pyc
? tests/results_files/QMTest/results_file_test.pyc
Index: ChangeLog
===================================================================
RCS file: /home/qm/Repository/qm/ChangeLog,v
retrieving revision 1.591
diff -u -r1.591 ChangeLog
--- ChangeLog	13 Jan 2004 14:46:28 -0000	1.591
+++ ChangeLog	14 Jan 2004 09:44:45 -0000
@@ -1,3 +1,10 @@
+2004-01-14  Nathaniel Smith  <njs at codesourcery.com>
+
+	* qm/test/classes/explicit_suite.py (arguments): Fix formatting
+	of description for 'is_implicit'.
+	(ExplicitSuite.IsImplicit): Compare 'BooleanField' value to
+	string "true".
+
 2004-01-13  Stefan Seefeld  <seefeld at sympatico.ca>
 
 	* qm/test/file_database.py: Fix little bug.
Index: qm/test/classes/explicit_suite.py
===================================================================
RCS file: /home/qm/Repository/qm/qm/test/classes/explicit_suite.py,v
retrieving revision 1.1
diff -u -r1.1 explicit_suite.py
--- qm/test/classes/explicit_suite.py	3 Jan 2004 04:02:59 -0000	1.1
+++ qm/test/classes/explicit_suite.py	14 Jan 2004 09:44:45 -0000
@@ -40,13 +40,13 @@
                 description = """The the suites contained in this suite.""")),
         BooleanField(name = "is_implicit",
                      title = "Implicit?",
-                     description = """,
+                     description = """\
                      True if this test is implicitly generated by QMTest."""),
         ]
     
     def IsImplicit(self):
 
-        return self.is_implicit
+        return self.is_implicit == "true"
    
 
     def GetTestIds(self):


More information about the qmtest mailing list