(self)
| 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()') |
nothing calls this directly
no test coverage detected