summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_bytes.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-24 17:58:48 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-24 17:58:48 (GMT)
commit8b33dd8e547790af86e9fc85ea6c315ead276b6e (patch)
tree4da041d085b8c0226f691429036835167e3874ac /Lib/test/test_bytes.py
parent6a7a49c6318afe8a54fe6dda2dd321af2a275295 (diff)
downloadcpython-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_bytes.py')
-rw-r--r--Lib/test/test_bytes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_bytes.py b/Lib/test/test_bytes.py
index 2b32767..0a6d446 100644
--- a/Lib/test/test_bytes.py
+++ b/Lib/test/test_bytes.py
@@ -773,7 +773,7 @@ class ByteArrayTest(BaseBytesTest):
finally:
try:
os.remove(tfn)
- except os.error:
+ except OSError:
pass
def test_reverse(self):