Skip to content

Commit

Permalink
WindowsError -> OSError
Browse files Browse the repository at this point in the history
  • Loading branch information
junkmd committed Nov 18, 2024
1 parent c90ae51 commit cc07c44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/test/test_ctypes/test_win32_com_foreign_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class IPersist(IUnknown):
self.assertEqual(S_OK, hr_qi)
self.assertEqual(3, punk.Release())

with self.assertRaises(WindowsError) as e:
with self.assertRaises(OSError) as e:
punk.QueryInterface(IID_IStream, IUnknown())
self.assertEqual(E_NOINTERFACE, e.exception.winerror)

Expand All @@ -152,7 +152,7 @@ class IPersist(IUnknown):
self.assertEqual(S_OK, hr_qi)
self.assertEqual(1, punk.Release())

with self.assertRaises(WindowsError) as e:
with self.assertRaises(OSError) as e:
ppst.QueryInterface(IID_IStream, IUnknown())
self.assertEqual(E_NOINTERFACE, e.exception.winerror)

Expand Down

0 comments on commit cc07c44

Please sign in to comment.