summaryrefslogtreecommitdiff
path: root/Lib/unittest/test/test_assertions.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-04-16 10:46:38 +0300
committerGitHub <noreply@github.com>2017-04-16 10:46:38 +0300
commit55fe1ae9708d81b902b6fe8f6590e2a24b1bd4b0 (patch)
treec1b3aacf87240d393666321d49a5abde3e1d601f /Lib/unittest/test/test_assertions.py
parentfdbd01151dbd5feea3e4c0316d102db3d2a2a412 (diff)
downloadcpython-git-55fe1ae9708d81b902b6fe8f6590e2a24b1bd4b0.tar.gz
bpo-30022: Get rid of using EnvironmentError and IOError (except test… (#1051)
Diffstat (limited to 'Lib/unittest/test/test_assertions.py')
-rw-r--r--Lib/unittest/test/test_assertions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/unittest/test/test_assertions.py b/Lib/unittest/test/test_assertions.py
index 1b0e83312d..31565da984 100644
--- a/Lib/unittest/test/test_assertions.py
+++ b/Lib/unittest/test/test_assertions.py
@@ -112,8 +112,8 @@ class Test_Assertions(unittest.TestCase):
a = A()
wr = weakref.ref(a)
try:
- raise IOError
- except IOError:
+ raise OSError
+ except OSError:
raise ValueError
def test_functional(self):