From 55fe1ae9708d81b902b6fe8f6590e2a24b1bd4b0 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 16 Apr 2017 10:46:38 +0300 Subject: =?UTF-8?q?bpo-30022:=20Get=20rid=20of=20using=20EnvironmentError?= =?UTF-8?q?=20and=20IOError=20(except=20test=E2=80=A6=20(#1051)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Lib/unittest/test/test_assertions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/unittest/test/test_assertions.py') 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): -- cgit v1.2.1