mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Clean up code which checked presence of os.{stat,lstat,chmod} (#11643)
This commit is contained in:
parent
9c3f284de5
commit
8377cd4fcd
18 changed files with 21 additions and 70 deletions
|
|
@ -428,7 +428,6 @@ class FileInputTests(BaseTests, unittest.TestCase):
|
|||
self.assertTrue(os_fstat_replacement.invoked,
|
||||
"os.fstat() was not invoked")
|
||||
|
||||
@unittest.skipIf(not hasattr(os, "chmod"), "os.chmod does not exist")
|
||||
def test_readline_os_chmod_raises_OSError(self):
|
||||
"""Tests invoking FileInput.readline() when os.chmod() raises OSError.
|
||||
This exception should be silently discarded."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue