[Buildbot-commits] buildbot/buildbot/test test_runner.py, 1.15, 1.16

Brian Warner warner at users.sourceforge.net
Tue Sep 25 20:39:51 UTC 2007


Update of /cvsroot/buildbot/buildbot/buildbot/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv8891/buildbot/test

Modified Files:
	test_runner.py 
Log Message:
[project @ test_runner.py: use sets.Set() for python2.3 compatibility]

Original author: warner at lothar.com
Date: 2007-09-25 20:39:19+00:00

Index: test_runner.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_runner.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- test_runner.py	25 Sep 2007 20:07:30 -0000	1.15
+++ test_runner.py	25 Sep 2007 20:39:49 -0000	1.16
@@ -4,6 +4,7 @@
 from twisted.trial import unittest
 from twisted.python import usage
 import os, shutil, shlex
+import sets
 
 from buildbot.scripts import runner, tryclient
 
@@ -192,8 +193,8 @@
         self.failUnlessSameFiles(files1, files3)
 
     def failUnlessSameFiles(self, files1, files2):
-        f1 = set(files1.keys())
-        f2 = set(files2.keys())
+        f1 = sets.Set(files1.keys())
+        f2 = sets.Set(files2.keys())
         msg = ""
         if f2 - f1:
             msg += "Missing from files1: %s\n" % (list(f2-f1),)





More information about the Commits mailing list