cpython: 60240ce64789 (original) (raw)

Mercurial > cpython

changeset 81030:60240ce64789

Add test coverage for os.removedirs (#16775) [#16775]

Andrew Svetlov andrew.svetlov@gmail.com
date Tue, 25 Dec 2012 12:21:49 +0200
parents e147d5f3c897(current diff)dbe9413686b3(diff)
children 3a86a3f1d89a
files Lib/test/test_os.py
diffstat 1 files changed, 46 insertions(+), 0 deletions(-)[+] [-] Lib/test/test_os.py 46

line wrap: on

line diff

--- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -905,6 +905,50 @@ class MakedirTests(unittest.TestCase): os.removedirs(path) + +class RemoveDirsTests(unittest.TestCase):

+

+

+

+

+ + class DevNullTests(unittest.TestCase): def test_devnull(self): with open(os.devnull, 'wb') as f: @@ -913,6 +957,7 @@ class DevNullTests(unittest.TestCase): with open(os.devnull, 'rb') as f: self.assertEqual(f.read(), b'') + class URandomTests(unittest.TestCase): def test_urandom_length(self): self.assertEqual(len(os.urandom(0)), 0) @@ -2176,6 +2221,7 @@ def test_main(): Win32DeprecatedBytesAPI, TermsizeTests, OSErrorTests,