uvloop/tests
Yury Selivanov dd812a4f00 Raise RuntimeError if Transport's socket is used with loop.add_writer
Some rules (for now at least):

* We dup sockets that are passed to loop.create_server,
  loop.create_connection, etc.  Since those sockets can be closed
  outside of uvloop, it's just safer to dup.

* We wrap Transport's FDs into Python sockets when
  get_extra_info('socket') is called.  We don't dup them in this
  case (they get detached with the transport they were created for
  is closed).

* If an FD from an active Transport is passed to loop.add_writer,
  loop.add_reader, loop.remove_writer or loop.remove_reader we now
  raise a RuntimeError (as does asyncio 3.6).
2016-10-21 19:23:08 -04:00
..
certs Implement SSL support for create_server and create_unix_server 2016-04-13 17:56:02 -04:00
test_aiohttp.py tests: Fix aiohttp test for the latest version of the library 2016-10-05 14:15:13 -04:00
test_base.py tests: Adjust test_call_later_1 to see why it fails on travis/mac 2016-08-02 18:47:27 -04:00
test_cython.py tests: Refactor test for coroutines compiled with Cython 2016-05-20 15:37:23 -04:00
test_dns.py tests/dns: Add a test for '::1' ipv6 address 2016-05-23 18:48:52 -04:00
test_executors.py tests: Add an extra await to the process executor test 2016-07-27 14:01:41 -04:00
test_futures.py Mark files that were copied with modifications from CPython. 2016-05-20 17:54:35 -04:00
test_pipes.py Introduce new way of scheduling transport writes (3x faster!) 2016-05-18 19:34:47 -04:00
test_process.py subprocess: Support 'preexec_fn' and 'restore_signals' arguments 2016-06-08 17:18:06 -04:00
test_signals.py Fix code style in unittest 2016-05-07 11:05:33 -04:00
test_sockets.py transport: Return duplicate sockets from get_extra_info('socket') 2016-07-05 17:10:29 -04:00
test_tasks.py Mark files that were copied with modifications from CPython. 2016-05-20 17:54:35 -04:00
test_tcp.py Raise RuntimeError if Transport's socket is used with loop.add_writer 2016-10-21 19:23:08 -04:00
test_testbase.py tests: Make base test class complain if there are duplicate tests 2016-05-23 19:24:04 -04:00
test_udp.py Rename uvloop._Loop -> uvloop.Loop 2016-05-09 15:37:39 -04:00
test_unix.py Raise RuntimeError if Transport's socket is used with loop.add_writer 2016-10-21 19:23:08 -04:00