mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Use ValueError, not RuntimeError for a utime flag combination illegal on some systems.
This commit is contained in:
parent
a4b018f0cd
commit
969288e488
2 changed files with 2 additions and 2 deletions
|
|
@ -730,7 +730,7 @@ class PosixTester(unittest.TestCase):
|
|||
if os.utime in os.supports_follow_symlinks:
|
||||
try:
|
||||
posix.utime(support.TESTFN, follow_symlinks=False, dir_fd=f)
|
||||
except RuntimeError:
|
||||
except ValueError:
|
||||
# whoops! using both together not supported on this platform.
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue