2013/12/31 Ben Darnell <[email protected]>: > I just tried running the Tornado test suite with this backported package and > it mostly works.
Wow, great! > There are two issues: > > * Tornado uses hasattr(ssl, 'SSLContext') to determine whether or not it can > use the APIs introduced in Python 3.2; the incomplete version of SSLContext > patched in by this package confuses it. I had to replace the hasattr calls > with explicit sys.version_info checks. Which issue do you get? It's not easy to drop the "backported" SSLContext class, because asyncio API is based on it, and I'm trying to keep Trollius API close as possible to Tulip API. > * One corner case is handled differently than in other implementations > (TestIOStreamSSL.test_inline_read_error). I haven't traced it all the way > through (this test is deliberately doing weird things to deterministically > trigger an error at a particular spot). The failure may be kqueue-specific > (it has to do with the fact that if you close an fd without the event loop's > knowledge with os.close(fd), subsequently unregistering that fd will fail). The Trollius project now tracks updates from Tulip and so should work correctly. Can you try Trollius 0.1 with Tornado? Victor
