Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Remove DelayedCall debugging from test runs #5787

Merged
merged 2 commits into from
Jul 31, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/5787.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove DelayedCall debugging from the test suite, as it is no longer required in the vast majority of Synapse's tests.
6 changes: 0 additions & 6 deletions tests/unittest.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@

from canonicaljson import json

import twisted
import twisted.logger
from twisted.internet.defer import Deferred, succeed
from twisted.python.threadpool import ThreadPool
from twisted.trial import unittest
Expand Down Expand Up @@ -80,10 +78,6 @@ def __init__(self, methodName, *args, **kwargs):

@around(self)
def setUp(orig):
# enable debugging of delayed calls - this means that we get a
# traceback when a unit test exits leaving things on the reactor.
twisted.internet.base.DelayedCall.debug = True

# if we're not starting in the sentinel logcontext, then to be honest
# all future bets are off.
if LoggingContext.current_context() is not LoggingContext.sentinel:
Expand Down