summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-06-21 16:53:13 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-06-21 16:53:13 (GMT)
commit60a95933cb1f43530085511bc8b21813f89e338e (patch)
treecb8df8b30455b6dd1b75fde6b66e8dd81dabd06c
parentf678b3131e3c4988bd05ccab58cb63ce0db463f9 (diff)
downloadcpython-60a95933cb1f43530085511bc8b21813f89e338e.zip
cpython-60a95933cb1f43530085511bc8b21813f89e338e.tar.gz
cpython-60a95933cb1f43530085511bc8b21813f89e338e.tar.bz2
Fix test_stat on BSD, /dev/da0 and /dev/ad0 are links
-rw-r--r--Lib/test/test_stat.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_stat.py b/Lib/test/test_stat.py
index 3a9d441..5fd0892 100644
--- a/Lib/test/test_stat.py
+++ b/Lib/test/test_stat.py
@@ -152,7 +152,8 @@ class TestFilemode(unittest.TestCase):
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')