ยปCore Development>Code coverage>Lib/test/test_asyncio/echo3.py

Python code coverage for Lib/test/test_asyncio/echo3.py

#countcontent
1n/aimport os
2n/a
3n/aif __name__ == '__main__':
4n/a while True:
5n/a buf = os.read(0, 1024)
6n/a if not buf:
7n/a break
8n/a try:
9n/a os.write(1, b'OUT:'+buf)
10n/a except OSError as ex:
11n/a os.write(2, b'ERR:' + ex.__class__.__name__.encode('ascii'))