Support running the tests in the debugger.

Bug 1039112

Change-Id: I4e449cebe8dbc4e8f591930de6551304354e1dd0
This commit is contained in:
Adam Young 2012-08-20 12:44:35 -04:00
parent a56b63e4bb
commit d04e99a513

View File

@ -350,9 +350,8 @@ if __name__ == '__main__':
do_monkeypatch = False
else:
argv.append(x)
if do_monkeypatch:
eventlet.patcher.monkey_patch(all=False, socket=True, time=True,
thread=True)
eventlet.patcher.monkey_patch(all=False, socket=True, time=True,
thread=do_monkeypatch)
testdir = os.path.abspath(os.path.join("tests"))
c = config.Config(stream=sys.stdout,
env=os.environ,