mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Replace IOError with OSError (#16715)
This commit is contained in:
parent
16bdd4120d
commit
f7a17b48d7
121 changed files with 381 additions and 386 deletions
|
|
@ -522,7 +522,7 @@ class TestUrlopen(unittest.TestCase):
|
|||
def test_bad_address(self):
|
||||
# Make sure proper exception is raised when connecting to a bogus
|
||||
# address.
|
||||
self.assertRaises(IOError,
|
||||
self.assertRaises(OSError,
|
||||
# Given that both VeriSign and various ISPs have in
|
||||
# the past or are presently hijacking various invalid
|
||||
# domain name requests in an attempt to boost traffic
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue