Skip to content

Commit

Permalink
remove unused RangeHTTPServer
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Feb 27, 2024
1 parent 1a1775e commit d954b1e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 233 deletions.
209 changes: 0 additions & 209 deletions asdf/_extern/RangeHTTPServer.py

This file was deleted.

18 changes: 1 addition & 17 deletions asdf/_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from asdf import config, schema

from . import create_large_tree, create_small_tree
from .httpserver import HTTPServer, RangeHTTPServer
from .httpserver import HTTPServer


@pytest.fixture()
Expand Down Expand Up @@ -52,22 +52,6 @@ def httpserver(request):
server.finalize()


@pytest.fixture()
def rhttpserver(request):
"""
The returned ``httpserver`` provides a threaded HTTP server
instance. It serves content from a temporary directory (available
as the attribute tmpdir) at randomly assigned URL (available as
the attribute url). The server supports HTTP Range headers.
* ``tmpdir`` - path to the tmpdir that it's serving from (str)
* ``url`` - the base url for the server
"""
server = RangeHTTPServer()
yield server
server.finalize()


@pytest.fixture()
def test_data_path():
return importlib.resources.files("asdf") / "_tests" / "data"
8 changes: 1 addition & 7 deletions asdf/_tests/httpserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
import tempfile
import threading

from asdf._extern.RangeHTTPServer import RangeHTTPRequestHandler

__all__ = ["HTTPServer", "RangeHTTPServer"]
__all__ = ["HTTPServer"]


def run_server(tmp_path, handler_class, stop_event, queue): # pragma: no cover
Expand Down Expand Up @@ -62,7 +60,3 @@ def finalize(self):
self.stop_event.set()
self.thread.join()
shutil.rmtree(self.tmpdir)


class RangeHTTPServer(HTTPServer):
handler_class = RangeHTTPRequestHandler

0 comments on commit d954b1e

Please sign in to comment.