diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2014-09-26 16:33:06 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2014-09-26 16:33:06 (GMT) |
commit | 97e2e06af84942c1d776df9660aa5f8dd30f222c (patch) | |
tree | cdc7af13f35813dd40a735f9f9492fb6999c3a2d /Lib/test | |
parent | 4f6355f8618bd463abe9dfe647ba60dcf2d71546 (diff) | |
download | cpython-97e2e06af84942c1d776df9660aa5f8dd30f222c.zip cpython-97e2e06af84942c1d776df9660aa5f8dd30f222c.tar.gz cpython-97e2e06af84942c1d776df9660aa5f8dd30f222c.tar.bz2 |
os: Include posix functions in os.__all__. Closes issue #18554.
Patch by Ronald Oussoren.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_os.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 020d0fa..6281596 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -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__": |