summaryrefslogtreecommitdiff
path: root/Lib/test/test_stat.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_stat.py')
-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 3a9d441746..5fd089246f 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')