Created
October 9, 2012 20:42
-
-
Save slacy/3861282 to your computer and use it in GitHub Desktop.
Rudimentary Twisted Trial Unit test that hangs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from twisted.trial import unittest | |
from twisted.internet.defer import Deferred | |
class TestRudimentary(unittest.TestCase): | |
# This test case succeeds, but hangs at the end of the invocation when running through nosetests. | |
# How can this be fixed? | |
def test_rudimentary(self): | |
def done(_ignored): | |
print "DONE" | |
defer = Deferred() | |
defer.addCallback(done) | |
return defer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment