from tornado.httpclient import HTTPClient, HTTPError
from tornado.httpserver import HTTPServer
-from tornado.ioloop import IOLoop
from tornado.log import gen_log
from tornado.process import fork_processes, task_id, Subprocess
from tornado.simple_httpclient import SimpleAsyncHTTPClient
@gen_test
def test_subprocess(self):
- if IOLoop.configured_class().__name__.endswith("LayeredTwistedIOLoop"):
- # This test fails non-deterministically with LayeredTwistedIOLoop.
- # (the read_until('\n') returns '\n' instead of 'hello\n')
- # This probably indicates a problem with either TornadoReactor
- # or TwistedIOLoop, but I haven't been able to track it down
- # and for now this is just causing spurious travis-ci failures.
- raise unittest.SkipTest(
- "Subprocess tests not compatible with " "LayeredTwistedIOLoop"
- )
# In Python 3.13.0b1, the new repl logs an error on exit if terminfo
# doesn't exist, the -i flag is used, and stdin is not a tty. This bug may
# have been fixed in beta 2, so for now we disable the new repl in this test