This will create a web server that runs forever, even after `astropy.test()` completes.  It also seems potentially problematic to setup the thread and the top level, but actually start it from the test function itself.

There are two options to fix this: If we think we'll end up using this server from other tests in this module, I would create the server and start its thread (and sleep) from `setup_module` and then `shutdown` the server and `join` the thread from `teardown_module`.  Then you wouldn't do the actual starting of the thread from within the test.

Option two is to move all of this top-level stuff to within the test function, and start the server and the thread from within *and* shut it down at the end of the test.