Don't bother running HTTP server tests on Python 2, since it's going away any

day now.
This commit is contained in:
Itamar Turner-Trauring 2021-12-01 09:38:56 -05:00
parent f2b52f368d
commit 18a5966f1d

View File

@ -14,6 +14,8 @@ if PY2:
from future.builtins import filter, map, zip, ascii, chr, hex, input, next, oct, open, pow, round, super, bytes, dict, list, object, range, str, max, min # noqa: F401
# fmt: on
from unittest import SkipTest
from twisted.trial.unittest import TestCase
from twisted.internet.defer import inlineCallbacks
@ -31,6 +33,8 @@ class HTTPTests(TestCase):
"""
def setUp(self):
if PY2:
raise SkipTest("Not going to bother supporting Python 2")
self.storage_server = StorageServer(self.mktemp(), b"\x00" * 20)
# TODO what should the swissnum _actually_ be?
self._http_server = HTTPServer(self.storage_server, b"abcd")