MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_listmounts

Method test_listmounts

Lib/test/test_os.py:3009–3021  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3007 )
3008
3009 def test_listmounts(self):
3010 for volume in os.listvolumes():
3011 try:
3012 mounts = os.listmounts(volume)
3013 except OSError as ex:
3014 if support.verbose:
3015 print("Skipping", volume, "because of", ex)
3016 else:
3017 self.assertIsInstance(mounts, list)
3018 self.assertSetEqual(
3019 set(mounts),
3020 self.known_mounts & set(mounts),
3021 )
3022
3023
3024@unittest.skipUnless(hasattr(os, 'readlink'), 'needs os.readlink()')

Callers

nothing calls this directly

Calls 4

setFunction · 0.85
assertIsInstanceMethod · 0.80
assertSetEqualMethod · 0.80
printFunction · 0.50

Tested by

no test coverage detected