summary refs log tree commit diff
path: root/tests/server.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-10-20 18:09:59 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2020-10-20 18:09:59 +0100
commit47d53b32e39d00b2e1e5db8928fa6a761f80e604 (patch)
tree41aeaaa2db2fb8031943c8f178e3b933d9686047 /tests/server.py
parentMerge commit '9f8abdcc3' into anoa/dinsic_release_1_21_x (diff)
parentCatch up after Federation Outage (split, 2): Track last successful stream ord... (diff)
downloadsynapse-47d53b32e39d00b2e1e5db8928fa6a761f80e604.tar.xz
Merge commit '17fa4c7ca' into anoa/dinsic_release_1_21_x
* commit '17fa4c7ca':
  Catch up after Federation Outage (split, 2): Track last successful stream ordering after transmission (#8247)
  Catch-up after Federation Outage (split, 1) (#8230)
  Fix type signature in simple_select_one_onecol and friends (#8241)
  Stop sub-classing object (#8249)
Diffstat (limited to 'tests/server.py')
-rw-r--r--tests/server.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/server.py b/tests/server.py

index b6e0b14e78..48e45c6c8b 100644 --- a/tests/server.py +++ b/tests/server.py
@@ -35,7 +35,7 @@ class TimedOutException(Exception): @attr.s -class FakeChannel(object): +class FakeChannel: """ A fake Twisted Web Channel (the part that interfaces with the wire). @@ -242,7 +242,7 @@ class ThreadedMemoryReactorClock(MemoryReactorClock): lookups = self.lookups = {} @implementer(IResolverSimple) - class FakeResolver(object): + class FakeResolver: def getHostByName(self, name, timeout=None): if name not in lookups: return fail(DNSLookupError("OH NO: unknown %s" % (name,))) @@ -371,7 +371,7 @@ def get_clock(): @attr.s(cmp=False) -class FakeTransport(object): +class FakeTransport: """ A twisted.internet.interfaces.ITransport implementation which sends all its data straight into an IProtocol object: it exists to connect two IProtocols together.