[Buildbot-commits] buildbot/buildbot/test test_buildreq.py, 1.4, 1.5 test_changes.py, 1.8, 1.9 test_config.py, 1.36, 1.37 test_control.py, 1.10, 1.11 test_dependencies.py, 1.3, 1.4 test_locks.py, 1.5, 1.6 test_mailparse.py, 1.4, 1.5 test_p4poller.py, 1.2, 1.3 test_run.py, 1.38, 1.39 test_runner.py, 1.12, 1.13 test_shell.py, 1.3, 1.4 test_slavecommand.py, 1.22, 1.23 test_status.py, 1.31, 1.32 test_steps.py, 1.25, 1.26 test_vc.py, 1.66, 1.67 test_web.py, 1.34, 1.35
Brian Warner
warner at users.sourceforge.net
Wed Sep 6 00:41:58 UTC 2006
- Previous message (by thread): [Buildbot-commits] buildbot/buildbot/changes base.py, 1.1, 1.2 changes.py, 1.27, 1.28 dnotify.py, 1.3, 1.4 mail.py, 1.20, 1.21 maildir.py, 1.7, 1.8 pb.py, 1.11, 1.12
- Next message (by thread): [Buildbot-commits] buildbot/buildbot/steps - New directory
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/buildbot/buildbot/buildbot/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv8799/buildbot/test
Modified Files:
test_buildreq.py test_changes.py test_config.py
test_control.py test_dependencies.py test_locks.py
test_mailparse.py test_p4poller.py test_run.py test_runner.py
test_shell.py test_slavecommand.py test_status.py
test_steps.py test_vc.py test_web.py
Log Message:
[project @ remove a lot of unused imports, marked by pyflakes]
Original author: warner at lothar.com
Date: 2006-09-06 00:35:06
Index: test_buildreq.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_buildreq.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- test_buildreq.py 14 Oct 2005 19:32:55 -0000 1.4
+++ test_buildreq.py 6 Sep 2006 00:41:55 -0000 1.5
@@ -3,7 +3,6 @@
from twisted.trial import unittest
from buildbot import buildset, interfaces, sourcestamp
-from buildbot.twcompat import maybeWait
from buildbot.process import base
from buildbot.status import builder
from buildbot.changes.changes import Change
Index: test_changes.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_changes.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- test_changes.py 21 Aug 2006 03:38:05 -0000 1.8
+++ test_changes.py 6 Sep 2006 00:41:55 -0000 1.9
@@ -2,7 +2,6 @@
from twisted.trial import unittest
from twisted.internet import defer, reactor
-from twisted.python import log
from buildbot import master
from buildbot.twcompat import maybeWait
Index: test_config.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_config.py,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- test_config.py 24 Jul 2006 22:09:20 -0000 1.36
+++ test_config.py 6 Sep 2006 00:41:55 -0000 1.37
@@ -1,22 +1,22 @@
# -*- test-case-name: buildbot.test.test_config -*-
from __future__ import generators
-import os, os.path
+import os
from twisted.trial import unittest
-from twisted.python import components, failure
+from twisted.python import failure
from twisted.internet import defer
+cvstoys = None
try:
import cvstoys
from buildbot.changes.freshcvs import FreshCVSSource
except ImportError:
- cvstoys = None
+ pass
from buildbot.twcompat import providedBy, maybeWait
from buildbot.master import BuildMaster
from buildbot import scheduler
-from buildbot import interfaces as ibb
from twisted.application import service, internet
from twisted.spread import pb
from twisted.web.server import Site
@@ -24,15 +24,12 @@
from buildbot.process.builder import Builder
from buildbot.process.factory import BasicBuildFactory
from buildbot.process import step
-from buildbot.status import html, builder, base
+from buildbot.status import base
+words = None
try:
from buildbot.status import words
except ImportError:
- words = None
-
-import sys
-from twisted.python import log
-#log.startLogging(sys.stdout)
+ pass
emptyCfg = \
"""
Index: test_control.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_control.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- test_control.py 20 Jun 2006 08:08:17 -0000 1.10
+++ test_control.py 6 Sep 2006 00:41:55 -0000 1.11
@@ -1,18 +1,17 @@
# -*- test-case-name: buildbot.test.test_control -*-
-import sys, os, signal, shutil, time, errno
+import os
from twisted.trial import unittest
-from twisted.internet import defer, reactor
+from twisted.internet import defer
from buildbot import master, interfaces
from buildbot.sourcestamp import SourceStamp
from buildbot.twcompat import providedBy, maybeWait
from buildbot.slave import bot
-from buildbot.status import builder
from buildbot.status.builder import SUCCESS
from buildbot.process import base
-from buildbot.test.runutils import SignalMixin, rmtree
+from buildbot.test.runutils import rmtree
config = """
from buildbot.process import factory, step
Index: test_dependencies.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_dependencies.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- test_dependencies.py 3 Jan 2006 09:26:41 -0000 1.3
+++ test_dependencies.py 6 Sep 2006 00:41:55 -0000 1.4
@@ -4,10 +4,6 @@
from twisted.internet import reactor, defer
-from buildbot import interfaces
-from buildbot.process import step
-from buildbot.sourcestamp import SourceStamp
-from buildbot.process.base import BuildRequest
from buildbot.test.runutils import RunMixin
from buildbot.twcompat import maybeWait
from buildbot.status import base
Index: test_locks.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_locks.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- test_locks.py 26 Aug 2006 19:50:50 -0000 1.5
+++ test_locks.py 6 Sep 2006 00:41:55 -0000 1.6
@@ -5,7 +5,7 @@
from twisted.trial import unittest
from twisted.internet import defer, reactor
-from buildbot import interfaces, master
+from buildbot import master
from buildbot.process import step
from buildbot.sourcestamp import SourceStamp
from buildbot.process.base import BuildRequest
Index: test_mailparse.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_mailparse.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- test_mailparse.py 18 May 2005 07:49:30 -0000 1.4
+++ test_mailparse.py 6 Sep 2006 00:41:55 -0000 1.5
@@ -1,6 +1,5 @@
# -*- test-case-name: buildbot.test.test_mailparse -*-
-import os.path
from twisted.trial import unittest
from twisted.python import util
from buildbot.changes.mail import parseFreshCVSMail, parseSyncmail
Index: test_p4poller.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_p4poller.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- test_p4poller.py 14 Jun 2006 06:49:19 -0000 1.2
+++ test_p4poller.py 6 Sep 2006 00:41:55 -0000 1.3
@@ -1,7 +1,6 @@
-import sys
import time
-from twisted.python import log, failure
+from twisted.python import failure
from twisted.internet import defer
from twisted.trial import unittest
@@ -9,8 +8,6 @@
from buildbot.changes.changes import Change
from buildbot.changes.p4poller import P4Source, get_simple_split
-#log.startLogging(sys.stderr)
-
first_p4changes = \
"""Change 1 on 2006/04/13 by slamb at testclient 'first rev'
"""
Index: test_run.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_run.py,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- test_run.py 20 Jun 2006 08:08:23 -0000 1.38
+++ test_run.py 6 Sep 2006 00:41:55 -0000 1.39
@@ -2,13 +2,10 @@
from twisted.trial import unittest
from twisted.internet import reactor, defer
-from twisted.python import log
-import sys, os, os.path, shutil, time, errno
-#log.startLogging(sys.stderr)
+import os
from buildbot import master, interfaces
from buildbot.sourcestamp import SourceStamp
-from buildbot.slave import bot
from buildbot.changes import changes
from buildbot.status import builder
from buildbot.process.base import BuildRequest
Index: test_runner.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_runner.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- test_runner.py 22 Oct 2005 23:22:10 -0000 1.12
+++ test_runner.py 6 Sep 2006 00:41:55 -0000 1.13
@@ -2,8 +2,8 @@
# this file tests the 'buildbot' command, with its various sub-commands
from twisted.trial import unittest
-from twisted.python import runtime, usage
-import os, os.path, shutil, shlex
+from twisted.python import usage
+import os, shutil, shlex
from buildbot.scripts import runner, tryclient
Index: test_shell.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_shell.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- test_shell.py 6 Aug 2006 22:37:20 -0000 1.3
+++ test_shell.py 6 Sep 2006 00:41:55 -0000 1.4
@@ -6,7 +6,6 @@
from twisted.trial import unittest
from twisted.internet import reactor, defer
from twisted.python import util
-from buildbot.process.step import ShellCommand
from buildbot.slave.commands import SlaveShellCommand
from buildbot.twcompat import maybeWait
from buildbot.test.runutils import SlaveCommandTestBase
Index: test_slavecommand.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_slavecommand.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- test_slavecommand.py 20 Jun 2006 08:08:51 -0000 1.22
+++ test_slavecommand.py 6 Sep 2006 00:41:55 -0000 1.23
@@ -5,12 +5,12 @@
from twisted.python import runtime, failure, util
from buildbot.twcompat import maybeWait
-import os, re, sys
+import os, sys
from buildbot.slave import commands
SlaveShellCommand = commands.SlaveShellCommand
-from buildbot.test.runutils import findDir, SignalMixin, FakeSlaveBuilder
+from buildbot.test.runutils import SignalMixin, FakeSlaveBuilder
# test slavecommand.py by running the various commands with a fake
# SlaveBuilder object that logs the calls to sendUpdate()
Index: test_status.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_status.py,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- test_status.py 15 Jun 2006 05:47:35 -0000 1.31
+++ test_status.py 6 Sep 2006 00:41:55 -0000 1.32
@@ -10,10 +10,12 @@
from buildbot.process.base import BuildRequest
from buildbot.twcompat import implements, providedBy, maybeWait
from buildbot.status import builder, base
+
+mail = None
try:
from buildbot.status import mail
except ImportError:
- mail = None
+ pass
from buildbot.status import progress, client # NEEDS COVERAGE
from buildbot.test.runutils import RunMixin
Index: test_steps.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_steps.py,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- test_steps.py 21 Aug 2006 00:43:20 -0000 1.25
+++ test_steps.py 6 Sep 2006 00:41:55 -0000 1.26
@@ -14,7 +14,7 @@
# todo: test batched updates, by invoking remote_update(updates) instead of
# statusUpdate(update). Also involves interrupted builds.
-import os, sys, time
+import os, time
from twisted.trial import unittest
from twisted.internet import reactor
@@ -24,13 +24,11 @@
from buildbot.process import step, base, factory
from buildbot.process.step import ShellCommand #, ShellCommands
from buildbot.status import builder
-from buildbot.test.runutils import RunMixin, rmtree, setupBuildStepStatus
+from buildbot.test.runutils import RunMixin, rmtree
from buildbot.test.runutils import makeBuildStep
from buildbot.twcompat import maybeWait
from buildbot.slave import commands
-from twisted.python import log
-#log.startLogging(sys.stdout)
class MyShellCommand(ShellCommand):
started = False
Index: test_vc.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_vc.py,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -d -r1.66 -r1.67
--- test_vc.py 6 Aug 2006 23:30:00 -0000 1.66
+++ test_vc.py 6 Sep 2006 00:41:55 -0000 1.67
@@ -2,11 +2,12 @@
from __future__ import generators
-import sys, os, signal, shutil, time, re
+import sys, os, time, re
from email.Utils import mktime_tz, parsedate_tz
from twisted.trial import unittest
from twisted.internet import defer, reactor, utils, protocol, error
+from twisted.python import failure
#defer.Deferred.debug = True
@@ -53,7 +54,8 @@
# all-out: bind the listen socket ourselves and pretend to be inetd.
try:
- import cStringIO as StringIO
+ import cStringIO
+ StringIO = cStringIO
except ImportError:
import StringIO
Index: test_web.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_web.py,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- test_web.py 23 Aug 2006 04:02:18 -0000 1.34
+++ test_web.py 6 Sep 2006 00:41:55 -0000 1.35
@@ -1,8 +1,7 @@
# -*- test-case-name: buildbot.test.test_web -*-
-import sys, os, os.path, time, shutil
-from twisted.python import log, components, util
-#log.startLogging(sys.stderr)
+import os, time, shutil
+from twisted.python import components
from twisted.trial import unittest
from buildbot.test.runutils import RunMixin
@@ -11,7 +10,7 @@
from twisted.internet.interfaces import IReactorUNIX
from twisted.web import client
-from buildbot import master, interfaces, buildset, sourcestamp
+from buildbot import master, interfaces, sourcestamp
from buildbot.twcompat import providedBy, maybeWait
from buildbot.status import html, builder
from buildbot.changes.changes import Change
- Previous message (by thread): [Buildbot-commits] buildbot/buildbot/changes base.py, 1.1, 1.2 changes.py, 1.27, 1.28 dnotify.py, 1.3, 1.4 mail.py, 1.20, 1.21 maildir.py, 1.7, 1.8 pb.py, 1.11, 1.12
- Next message (by thread): [Buildbot-commits] buildbot/buildbot/steps - New directory
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Commits
mailing list