mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Should use posix_error here.
This commit is contained in:
parent
43b5a857d6
commit
26253bb09e
2 changed files with 4 additions and 6 deletions
|
|
@ -248,7 +248,7 @@ class TestNtpath(unittest.TestCase):
|
|||
self.assertFalse(ntpath.sameopenfile(tf1.fileno(), tf2.fileno()))
|
||||
# Make sure invalid values don't cause issues on win32
|
||||
if sys.platform == "win32":
|
||||
with self.assertRaises(ValueError):
|
||||
with self.assertRaises(OSError):
|
||||
# Invalid file descriptors shouldn't display assert
|
||||
# dialogs (#4804)
|
||||
ntpath.sameopenfile(-1, -1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue