mirror of
https://github.com/python/cpython.git
synced 2025-08-27 12:16:04 +00:00
BSD: block devices are gone
http://www.freebsd.org/doc/en/books/arch-handbook/driverbasics-block.html
This commit is contained in:
parent
29b2f174da
commit
45d9493ee9
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ class TestFilemode(unittest.TestCase):
|
||||||
st_mode, modestr = self.get_mode(os.devnull)
|
st_mode, modestr = self.get_mode(os.devnull)
|
||||||
self.assertEqual(modestr[0], 'c')
|
self.assertEqual(modestr[0], 'c')
|
||||||
self.assertS_IS("CHR", st_mode)
|
self.assertS_IS("CHR", st_mode)
|
||||||
# needs block devices in BSD, /dev/da0, /dev/ad0 are links
|
# Linux block devices, BSD has no block devices anymore
|
||||||
for blockdev in ("/dev/sda", "/dev/hda"):
|
for blockdev in ("/dev/sda", "/dev/hda"):
|
||||||
if os.path.exists(blockdev):
|
if os.path.exists(blockdev):
|
||||||
st_mode, modestr = self.get_mode(blockdev)
|
st_mode, modestr = self.get_mode(blockdev)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue