os: Include posix functions in os.__all__. Closes issue #18554.

Patch by Ronald Oussoren.
This commit is contained in:
Yury Selivanov 2014-09-26 12:33:06 -04:00
parent 4f6355f861
commit 97e2e06af8
3 changed files with 14 additions and 0 deletions

View file

@ -2616,6 +2616,13 @@ class BlockingTests(unittest.TestCase):
self.assertEqual(os.get_blocking(fd), True)
class ExportsTests(unittest.TestCase):
def test_os_all(self):
self.assertIn('open', os.__all__)
self.assertIn('walk', os.__all__)
@support.reap_threads
def test_main():
support.run_unittest(
@ -2652,6 +2659,7 @@ def test_main():
FDInheritanceTests,
Win32JunctionTests,
BlockingTests,
ExportsTests,
)
if __name__ == "__main__":