diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-24 17:58:48 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-24 17:58:48 (GMT) |
commit | 8b33dd8e547790af86e9fc85ea6c315ead276b6e (patch) | |
tree | 4da041d085b8c0226f691429036835167e3874ac /Lib/test/test_pty.py | |
parent | 6a7a49c6318afe8a54fe6dda2dd321af2a275295 (diff) | |
download | cpython-8b33dd8e547790af86e9fc85ea6c315ead276b6e.zip cpython-8b33dd8e547790af86e9fc85ea6c315ead276b6e.tar.gz cpython-8b33dd8e547790af86e9fc85ea6c315ead276b6e.tar.bz2 |
Use OESeeror instead of os.error (#16720)
Patch by Serhiy Storchaka.
Diffstat (limited to 'Lib/test/test_pty.py')
-rw-r--r-- | Lib/test/test_pty.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_pty.py b/Lib/test/test_pty.py index 29297f8..8916861 100644 --- a/Lib/test/test_pty.py +++ b/Lib/test/test_pty.py @@ -187,7 +187,7 @@ class PtyTest(unittest.TestCase): ##debug("Reading from master_fd now that the child has exited") ##try: ## s1 = os.read(master_fd, 1024) - ##except os.error: + ##except OSError: ## pass ##else: ## raise TestFailed("Read from master_fd did not raise exception") |