summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_fileio.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-17 21:35:18 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-17 21:35:18 (GMT)
commit3438fa496db50ef3cafcfdb3243f2f769bc12ebe (patch)
tree8c480821ca46d7d91d4f3ba8c8343afe389d7208 /Lib/test/test_fileio.py
parent6eda46de99189812e6982f568bbe941346918964 (diff)
downloadcpython-3438fa496db50ef3cafcfdb3243f2f769bc12ebe.zip
cpython-3438fa496db50ef3cafcfdb3243f2f769bc12ebe.tar.gz
cpython-3438fa496db50ef3cafcfdb3243f2f769bc12ebe.tar.bz2
Get rig of EnvironmentError (#16705)
Diffstat (limited to 'Lib/test/test_fileio.py')
-rw-r--r--Lib/test/test_fileio.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_fileio.py b/Lib/test/test_fileio.py
index 0847961..9615c3a 100644
--- a/Lib/test/test_fileio.py
+++ b/Lib/test/test_fileio.py
@@ -285,7 +285,7 @@ class OtherFileTests(unittest.TestCase):
if sys.platform != "win32":
try:
f = _FileIO("/dev/tty", "a")
- except EnvironmentError:
+ except OSError:
# When run in a cron job there just aren't any
# ttys, so skip the test. This also handles other
# OS'es that don't support /dev/tty.