Changeset 63
- Timestamp:
- 07/26/07 16:55:51 (1 year ago)
- Files:
-
- projects/Twisted-Goodies/trunk/twisted_goodies/simpleserver/http/resources/test/test_projects.py (added)
- projects/Twisted-Goodies/trunk/twisted_goodies/test/mock.py (added)
- projects/Twisted-Goodies/trunk/twisted_goodies/test/__init__.py (modified) (1 diff)
- projects/Twisted-Goodies/trunk/twisted_goodies/webfetch/test/test_patents.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
projects/Twisted-Goodies/trunk/twisted_goodies/test/__init__.py
r2 r63 31 31 packagePath = os.path.dirname(packagePath) 32 32 if packagePath not in sys.path: 33 sys.path.insert(0, packagePath) 33 sys.path.insert(0, packagePath) 34 35 # Ensure that any helper modules in the "real" test package (containing the 36 # target file for any symlinks to this file) can be imported by name only 37 packagePath = os.path.dirname(os.path.realpath(__file__)) 38 if packagePath not in sys.path: 39 sys.path.append(packagePath) 40 41 projects/Twisted-Goodies/trunk/twisted_goodies/webfetch/test/test_patents.py
r2 r63 28 28 from twisted.python import procutils 29 29 from twisted.trial.unittest import TestCase 30 31 from twisted_goodies import taskqueue 30 import asynqueue 31 32 32 from twisted_goodies.webfetch import patents 33 33 … … 58 58 59 59 60 class ThreadQueue( taskqueue.ThreadQueue):60 class ThreadQueue(asynqueue.ThreadQueue): 61 61 """ 62 62 I am a task queue that can display calls and results in a logging window. 63 63 """ 64 64 def __init__(self): 65 taskqueue.ThreadQueue.__init__(self, 1)65 asynqueue.ThreadQueue.__init__(self, 1) 66 66 self.callCounter = 0 67 67 … … 75 75 return result 76 76 77 d = taskqueue.ThreadQueue.call(self, *args, **kw)77 d = asynqueue.ThreadQueue.call(self, *args, **kw) 78 78 if VERBOSE_QUEUE: 79 79 self.callCounter += 1
