[Buildbot-commits] buildbot/buildbot/test test_steps.py,1.32,1.33

Brian Warner warner at users.sourceforge.net
Thu Oct 5 00:46:00 UTC 2006


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

Modified Files:
	test_steps.py 
Log Message:
[project @ PyFlakes: another test]

Original author: warner at allmydata.com
Date: 2006-10-05 00:42:17

Index: test_steps.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_steps.py,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- test_steps.py	5 Oct 2006 00:45:48 -0000	1.32
+++ test_steps.py	5 Oct 2006 00:45:58 -0000	1.33
@@ -468,3 +468,27 @@
         self.failUnless("import*=1" in desc)
         self.failUnless("misc=2" in desc)
 
+
+    def testPyFlakes3(self):
+        self.masterbase = "Python.testPyFlakes3"
+        step = self.makeStep(python.PyFlakes)
+        output = \
+"""buildbot/changes/freshcvsmail.py:5: 'FCMaildirSource' imported but unused
+buildbot/clients/debug.py:9: redefinition of unused 'gtk' from line 9
+buildbot/clients/debug.py:9: 'gnome' imported but unused
+buildbot/scripts/runner.py:323: redefinition of unused 'run' from line 321
+buildbot/scripts/runner.py:325: redefinition of unused 'run' from line 323
+buildbot/scripts/imaginary.py:12: undefined name 'size'
+buildbot/scripts/imaginary.py:18: 'from buildbot import *' used; unable to detect undefined names
+"""
+        log = step.addLog("stdio")
+        log.addStdout(output)
+        log.finish()
+        step.createSummary(log)
+        desc = step.descriptionDone
+        self.failUnless("unused=2" in desc)
+        self.failUnless("undefined=1" in desc)
+        self.failUnless("redefs=3" in desc)
+        self.failUnless("import*=1" in desc)
+        self.failIf("misc" in desc)
+





More information about the Commits mailing list