mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #18702: All skipped tests now reported as skipped.
This commit is contained in:
parent
834856aca9
commit
7908068627
21 changed files with 908 additions and 883 deletions
|
@ -37,11 +37,9 @@ class DumbDBMTestCase(unittest.TestCase):
|
|||
self.read_helper(f)
|
||||
f.close()
|
||||
|
||||
@unittest.skipUnless(hasattr(os, 'umask'), 'test needs os.umask()')
|
||||
@unittest.skipUnless(hasattr(os, 'chmod'), 'test needs os.chmod()')
|
||||
def test_dumbdbm_creation_mode(self):
|
||||
# On platforms without chmod, don't do anything.
|
||||
if not (hasattr(os, 'chmod') and hasattr(os, 'umask')):
|
||||
return
|
||||
|
||||
try:
|
||||
old_umask = os.umask(0o002)
|
||||
f = dumbdbm.open(_fname, 'c', 0o637)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue