diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-17 23:35:18 +0200 |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-17 23:35:18 +0200 |
commit | 67edf8022e0dbb8e72cd48247adb0563fed6c30b (patch) | |
tree | 696895f7748bd5ecbbe62e1e7d29ed07b44d355b /Lib/test/test_tempfile.py | |
parent | f575364e3c6c0777a54f436c530961d49ebc7ecb (diff) | |
download | cpython-67edf8022e0dbb8e72cd48247adb0563fed6c30b.tar.gz |
Get rig of EnvironmentError (#16705)
Diffstat (limited to 'Lib/test/test_tempfile.py')
-rw-r--r-- | Lib/test/test_tempfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py index 8d161d9d88..f5193dcd3f 100644 --- a/Lib/test/test_tempfile.py +++ b/Lib/test/test_tempfile.py @@ -149,7 +149,7 @@ class TestRandomNameSequence(BaseTestCase): # via any bugs above try: os.kill(pid, signal.SIGKILL) - except EnvironmentError: + except OSError: pass os.close(read_fd) os.close(write_fd) |