summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_dbm_dumb.py
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2019-02-25 22:32:27 (GMT)
committerGiampaolo Rodola <g.rodola@gmail.com>2019-02-25 22:32:27 (GMT)
commit8377cd4fcd0d51d86834c9b0518d29aac3b49e18 (patch)
treee8d82c3567b2d39ff0bd285d25ce2d02359ae070 /Lib/test/test_dbm_dumb.py
parent9c3f284de598550be6687964c23fd7599e53b20e (diff)
downloadcpython-8377cd4fcd0d51d86834c9b0518d29aac3b49e18.zip
cpython-8377cd4fcd0d51d86834c9b0518d29aac3b49e18.tar.gz
cpython-8377cd4fcd0d51d86834c9b0518d29aac3b49e18.tar.bz2
Clean up code which checked presence of os.{stat,lstat,chmod} (#11643)
Diffstat (limited to 'Lib/test/test_dbm_dumb.py')
-rw-r--r--Lib/test/test_dbm_dumb.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/test/test_dbm_dumb.py b/Lib/test/test_dbm_dumb.py
index e8e827e..a971359 100644
--- a/Lib/test/test_dbm_dumb.py
+++ b/Lib/test/test_dbm_dumb.py
@@ -40,7 +40,6 @@ class DumbDBMTestCase(unittest.TestCase):
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):
try:
old_umask = os.umask(0o002)
@@ -275,7 +274,6 @@ class DumbDBMTestCase(unittest.TestCase):
"'r', 'w', 'c', or 'n'"):
dumbdbm.open(_fname, flag)
- @unittest.skipUnless(hasattr(os, 'chmod'), 'test needs os.chmod()')
def test_readonly_files(self):
with support.temp_dir() as dir:
fname = os.path.join(dir, 'db')