[Buildbot-commits] buildbot/buildbot twcompat.py,1.8,1.9
Brian Warner
warner at users.sourceforge.net
Mon Dec 11 08:23:31 UTC 2006
- Previous message (by thread): [Buildbot-commits] buildbot ChangeLog,1.806,1.807
- Next message (by thread): [Buildbot-commits] buildbot/buildbot/test runutils.py, 1.17, 1.18 test_changes.py, 1.9, 1.10 test_config.py, 1.40, 1.41 test_control.py, 1.13, 1.14 test_dependencies.py, 1.5, 1.6 test_locks.py, 1.7, 1.8 test_p4poller.py, 1.3, 1.4 test_properties.py, 1.5, 1.6 test_run.py, 1.42, 1.43 test_scheduler.py, 1.11, 1.12 test_shell.py, 1.4, 1.5 test_slavecommand.py, 1.23, 1.24 test_slaves.py, 1.5, 1.6 test_status.py, 1.35, 1.36 test_steps.py, 1.34, 1.35 test_transfer.py, 1.4, 1.5 test_vc.py, 1.69, 1.70 test_web.py, 1.37, 1.38
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/buildbot/buildbot/buildbot
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv2276/buildbot
Modified Files:
twcompat.py
Log Message:
[project @ remove all uses of buildbot.twcompat.maybeWait, now that we don't need to maintain Twisted-1.3.0 compatibility]
Original author: warner at lothar.com
Date: 2006-12-11 08:21:51
Index: twcompat.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/twcompat.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- twcompat.py 6 Sep 2006 00:41:54 -0000 1.8
+++ twcompat.py 11 Dec 2006 08:23:29 -0000 1.9
@@ -41,30 +41,6 @@
from twisted.python.components import Interface
providedBy = components.implements
-# are we using a version of Trial that allows setUp/testFoo/tearDown to
-# return Deferreds?
-oldtrial = version.startswith("1.3")
-
-# use this at the end of setUp/testFoo/tearDown methods
-def maybeWait(d, timeout="none"):
- from twisted.python import failure
- from twisted.trial import unittest
- if oldtrial:
- # this is required for oldtrial (twisted-1.3.0) compatibility. When we
- # move to retrial (twisted-2.0.0), replace these with a simple 'return
- # d'.
- try:
- if timeout == "none":
- unittest.deferredResult(d)
- else:
- unittest.deferredResult(d, timeout)
- except failure.Failure, f:
- if f.check(unittest.SkipTest):
- raise f.value
- raise
- return None
- return d
-
# waitForDeferred and getProcessOutputAndValue are twisted-2.0 things. If
# we're running under 1.3, patch them into place. These versions are copied
# from twisted somewhat after 2.0.1 .
- Previous message (by thread): [Buildbot-commits] buildbot ChangeLog,1.806,1.807
- Next message (by thread): [Buildbot-commits] buildbot/buildbot/test runutils.py, 1.17, 1.18 test_changes.py, 1.9, 1.10 test_config.py, 1.40, 1.41 test_control.py, 1.13, 1.14 test_dependencies.py, 1.5, 1.6 test_locks.py, 1.7, 1.8 test_p4poller.py, 1.3, 1.4 test_properties.py, 1.5, 1.6 test_run.py, 1.42, 1.43 test_scheduler.py, 1.11, 1.12 test_shell.py, 1.4, 1.5 test_slavecommand.py, 1.23, 1.24 test_slaves.py, 1.5, 1.6 test_status.py, 1.35, 1.36 test_steps.py, 1.34, 1.35 test_transfer.py, 1.4, 1.5 test_vc.py, 1.69, 1.70 test_web.py, 1.37, 1.38
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Commits
mailing list