Ensure that __all__ is populated properly.
(self)
| 3971 | os.rmdir(dir) |
| 3972 | |
| 3973 | def test__all__(self): |
| 3974 | """Ensure that __all__ is populated properly.""" |
| 3975 | intentionally_excluded = {"list2cmdline", "Handle", "pwd", "grp", "fcntl"} |
| 3976 | exported = set(subprocess.__all__) |
| 3977 | possible_exports = set() |
| 3978 | import types |
| 3979 | for name, value in subprocess.__dict__.items(): |
| 3980 | if name.startswith('_'): |
| 3981 | continue |
| 3982 | if isinstance(value, (types.ModuleType,)): |
| 3983 | continue |
| 3984 | possible_exports.add(name) |
| 3985 | self.assertEqual(exported, possible_exports - intentionally_excluded) |
| 3986 | |
| 3987 | |
| 3988 | @unittest.skipUnless(hasattr(selectors, 'PollSelector'), |
nothing calls this directly
no test coverage detected