summaryrefslogtreecommitdiff
path: root/Lib/test/test_tempfile.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-17 23:35:18 +0200
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-17 23:35:18 +0200
commit67edf8022e0dbb8e72cd48247adb0563fed6c30b (patch)
tree696895f7748bd5ecbbe62e1e7d29ed07b44d355b /Lib/test/test_tempfile.py
parentf575364e3c6c0777a54f436c530961d49ebc7ecb (diff)
downloadcpython-67edf8022e0dbb8e72cd48247adb0563fed6c30b.tar.gz
Get rig of EnvironmentError (#16705)
Diffstat (limited to 'Lib/test/test_tempfile.py')
-rw-r--r--Lib/test/test_tempfile.py2
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)