Use ValueError, not RuntimeError for a utime flag combination illegal on some systems.

This commit is contained in:
Georg Brandl 2012-06-26 09:25:44 +02:00
parent a4b018f0cd
commit 969288e488
2 changed files with 2 additions and 2 deletions

View file

@ -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