cpython: 6c23ca1982b3 (original) (raw)

Mercurial > cpython

changeset 84276:6c23ca1982b3 3.3

Solaris' /dev/null is a symlink. The device test now uses stat instead of lstat to compensate for symlinks.

Christian Heimes christian@cheimes.de
date Sun, 23 Jun 2013 16:10:29 +0200
parents f0d934732ab1
children 6fd45b004d78 56c1227f21f5 f8ede55cf92b
files Lib/test/test_stat.py
diffstat 1 files changed, 7 insertions(+), 4 deletions(-)[+] [-] Lib/test/test_stat.py 11

line wrap: on

line diff

--- a/Lib/test/test_stat.py +++ b/Lib/test/test_stat.py @@ -58,8 +58,11 @@ class TestFilemode(unittest.TestCase): pass tearDown = setUp

@@ -149,13 +152,13 @@ class TestFilemode(unittest.TestCase): @unittest.skipUnless(os.name == 'posix', 'requires Posix') def test_devices(self): if os.path.exists(os.devnull):