Commit Graph

10 Commits

Author SHA1 Message Date
Euiseo Cha 8e42921d7b
Support python 3.11+ (#473)
* chore: Cython version update
* add 3.11-dev pipeline
* Test and build on Python 3.11
* Drop test_context_run_segfault
* Support context in loop.create_task()
* Consistent PseudoSocket repr
* Add stubs for new 3.11 loop.sock_*() methods
* Skip test_create_ssl_server_manual_connection_lost on 3.11 for now

Co-authored-by: Fantix King <fantix.king@gmail.com>
Co-authored-by: Elvis Pranskevichus <elvis@edgedb.com>
2022-09-01 10:56:34 -05:00
Fantix King e955017936 Remove `import tests` for testinstalled 2021-02-09 22:42:07 -06:00
Fantix King f691212b26 Fix context in protocol callbacks (#348)
This is a combined fix to correct contexts from which protocal callbacks
are invoked. In short, callbacks like data_received() should always be
invoked from consistent contexts which are copied from the context where
the underlying UVHandle is created or started.

The new test case covers also asyncio, but skipping the failing ones.
2021-02-05 14:38:11 -06:00
Versus Void 7b202ccf64 Restore context on listen in UVStreamServer. Fix #305 2021-02-05 14:38:11 -06:00
Fantix King cdd2218fa3
Drop Python 3.5/3.6 support (#383)
Fixes #381
2021-01-24 19:59:20 -06:00
Yury Selivanov eb8d7ba170 tests: Stop passing loop explicitly in tests
In 3.8 a lot of asyncio functions have their `loop` parameter
deprecated.  So we change the semantics of uvloop tests to never
pass the loop explicitly (unless to Future objects, when necessary)

That means that we now also need to set up asyncio/uvloop loop policies
for tests in setUp hooks.
2019-10-24 14:42:54 -04:00
Yury Selivanov ee054206b0 tests: Improve test_task_context_4 2018-08-07 13:05:28 -04:00
Yury Selivanov 8604b0361a
Fix a memory leak related to contextvars support. (#192)
Initial patch and memleak discovery by Victor K. @hellysmile.

Fixes #191.
2018-08-07 12:56:06 -04:00
Yury Selivanov 878e4163b1 Raise NotImplementedError for contextvars for Python < 3.7 2018-05-25 17:50:09 -04:00
Yury Selivanov 2a4fab44a4
Implement PEP 567 support (contextvars) for Python 3.7 (#155) 2018-05-25 16:30:19 -04:00