Ticket #2219: trial.patch

File trial.patch, 797 bytes (added by sifu, 9 years ago)

path for scripts/trial.py

  • scripts/trial.py

     
    66
    77import sys, os, random, gc, time, sets
    88
     9from twisted.internet import reactor
    910from twisted.internet import defer
    1011from twisted.application import app
    1112from twisted.python import usage, reflect, failure
     
    337338                              workingDirectory=config['temp-directory'])
    338339
    339340
    340 def run():
     341def _run():
    341342    if len(sys.argv) == 1:
    342343        sys.argv.append("--help")
    343344    config = Options()
     
    359360                              coverdir=config.coverdir)
    360361    sys.exit(not test_result.wasSuccessful())
    361362
     363def run():
     364    reactor.callLater( 0, _run )
     365    reactor.run( )