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

Method test__all__

Lib/test/test_subprocess.py:3974–3986  ·  view source on GitHub ↗

Ensure that __all__ is populated properly.

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected