[Spambayes-checkins] spambayes/Outlook2000 tester.py,1.5,1.6

Mark Hammond mhammond at users.sourceforge.net
Thu Mar 20 04:08:01 EST 2003


Update of /cvsroot/spambayes/spambayes/Outlook2000
In directory sc8-pr-cvs1:/tmp/cvs-serv6184

Modified Files:
	tester.py 
Log Message:
Was getting the wrong end of the sorted list!  Also ensure db saved before
test.


Index: tester.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/tester.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** tester.py	4 Mar 2003 05:49:54 -0000	1.5
--- tester.py	20 Mar 2003 12:07:59 -0000	1.6
***************
*** 72,75 ****
--- 72,76 ----
                  items.append((info.hamcount, word, info))
      items.sort()
+     items.reverse()
      # Throw an error if we don't have enough tokens - otherwise
      # the test itself may fail, which will be more confusing than this.
***************
*** 300,303 ****
--- 301,305 ----
      # Run the tests - called from our plugin.
      driver = Driver(manager)
+     manager.Save() # necessary after a full retrain
      assert driver.manager.config.filter.enabled, "Filtering must be enabled for these tests"
      assert driver.manager.config.training.train_recovered_spam and \





More information about the Spambayes-checkins mailing list