summaryrefslogtreecommitdiff
path: root/Lib/test/test_asyncio/echo2.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-12-14 19:18:39 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2013-12-14 19:18:39 +0200
commita566549211d48775b6573e74dc55dd0fcde0600b (patch)
tree4d22ddea7465a167b3532578b4e9719628944a6a /Lib/test/test_asyncio/echo2.py
parent2f64ebcf0395bd3ee8cf4a8a1e74c73f1c5ab3c4 (diff)
parentef41f59e7544eae3e38815a5c8bc8f5a944d0b13 (diff)
downloadcpython-a566549211d48775b6573e74dc55dd0fcde0600b.tar.gz
Issue #17919: Fixed integer overflow in the eventmask parameter.
Diffstat (limited to 'Lib/test/test_asyncio/echo2.py')
-rw-r--r--Lib/test/test_asyncio/echo2.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/echo2.py b/Lib/test/test_asyncio/echo2.py
new file mode 100644
index 0000000000..e83ca09fb7
--- /dev/null
+++ b/Lib/test/test_asyncio/echo2.py
@@ -0,0 +1,6 @@
+import os
+
+if __name__ == '__main__':
+ buf = os.read(0, 1024)
+ os.write(1, b'OUT:'+buf)
+ os.write(2, b'ERR:'+buf)