summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_posix.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-06-26 07:25:44 (GMT)
committerGeorg Brandl <georg@python.org>2012-06-26 07:25:44 (GMT)
commit969288e488f6d261fbfbab43dcbe6bb6afce28c0 (patch)
tree325fb75d539e7d55f0fb78e5684437c336097d64 /Lib/test/test_posix.py
parenta4b018f0cd9c1b84f4c6bf3b3dc893237c46df94 (diff)
downloadcpython-969288e488f6d261fbfbab43dcbe6bb6afce28c0.zip
cpython-969288e488f6d261fbfbab43dcbe6bb6afce28c0.tar.gz
cpython-969288e488f6d261fbfbab43dcbe6bb6afce28c0.tar.bz2
Use ValueError, not RuntimeError for a utime flag combination illegal on some systems.
Diffstat (limited to 'Lib/test/test_posix.py')
-rw-r--r--Lib/test/test_posix.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
index 776439f..9bedc7d 100644
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -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