MCPcopy Index your code
hub / github.com/python/cpython / test__all__

Method test__all__

Lib/test/test_subprocess.py:3973–3985  ·  view source on GitHub ↗

Ensure that __all__ is populated properly.

(self)

Source from the content-addressed store, hash-verified

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'),

Callers

nothing calls this directly

Calls 5

setFunction · 0.85
itemsMethod · 0.45
startswithMethod · 0.45
addMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected