We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a7e029 commit 7532c45Copy full SHA for 7532c45
Lib/test/test_dbm.py
@@ -274,7 +274,8 @@ def test_whichdb(self):
274
@unittest.skipUnless(ndbm, reason='Test requires ndbm')
275
def test_whichdb_ndbm(self):
276
# Issue 17198: check that ndbm which is referenced in whichdb is defined
277
- with open(_fname + '.db', 'wb'): pass
+ with open(_fname + '.db', 'wb') as f:
278
+ f.write(b'spam')
279
_bytes_fname = os.fsencode(_fname)
280
fnames = [_fname, os_helper.FakePath(_fname),
281
_bytes_fname, os_helper.FakePath(_bytes_fname)]
0 commit comments