Patch by Ronald Oussoren.
except ImportError:
pass
+ import posix
+ __all__.extend(_get_exports_list(posix))
+ del posix
+
elif 'nt' in _names:
name = 'nt'
linesep = '\r\n'
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(
FDInheritanceTests,
Win32JunctionTests,
BlockingTests,
+ ExportsTests,
)
if __name__ == "__main__":
Core and Builtins
-----------------
+- Issue #18554: os.__all__ includes posix functions.
+
- Issue #21391: Use os.path.abspath in the shutil module.
- Issue #11471: avoid generating a JUMP_FORWARD instruction at the end of