tests/os_test.py
raw| 1 | import eventlet |
| 2 | import tests |
| 3 | |
| 4 | |
| 5 | def test_pathlib_open_issue_534(): |
| 6 | pathlib = eventlet.import_patched('pathlib') |
| 7 | path = pathlib.Path(__file__) |
| 8 | with path.open(): |
| 9 | # should not raise |
| 10 | pass |
| 11 | |
| 12 | |
| 13 | def test_os_read_nonblocking(): |
| 14 | tests.run_isolated('os_read_nonblocking.py') |
| 15 | |
| 16 | |
| 17 | def test_os_write_nonblocking(): |
| 18 | tests.run_isolated('os_write_nonblocking.py') |