[Python-checkins] cpython (3.3): Fix test_stat on BSD, /dev/da0 and /dev/ad0 are links

christian.heimes python-checkins at python.org
Fri Jun 21 18:53:36 CEST 2013


http://hg.python.org/cpython/rev/ea8359a13ce7
changeset:   84243:ea8359a13ce7
branch:      3.3
parent:      84241:f8ff61f44aca
user:        Christian Heimes <christian at cheimes.de>
date:        Fri Jun 21 18:53:13 2013 +0200
summary:
  Fix test_stat on BSD, /dev/da0 and /dev/ad0 are links

files:
  Lib/test/test_stat.py |  3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_stat.py b/Lib/test/test_stat.py
--- a/Lib/test/test_stat.py
+++ b/Lib/test/test_stat.py
@@ -152,7 +152,8 @@
             st_mode, modestr = self.get_mode(os.devnull)
             self.assertEqual(modestr[0], 'c')
             self.assertS_IS("CHR", st_mode)
-        for blockdev in ("/dev/sda", "/dev/hda", "/dev/da0", "/dev/ad0"):
+        # needs block devices in BSD, /dev/da0, /dev/ad0 are links
+        for blockdev in ("/dev/sda", "/dev/hda"):
             if os.path.exists(blockdev):
                 st_mode, modestr = self.get_mode(blockdev)
                 self.assertEqual(modestr[0], 'b')

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list