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 843e805 commit eea2af3Copy full SHA for eea2af3
Lib/test/test_dbm.py
@@ -213,7 +213,8 @@ def test_whichdb(self):
213
@unittest.skipUnless(ndbm, reason='Test requires ndbm')
214
def test_whichdb_ndbm(self):
215
# Issue 17198: check that ndbm which is referenced in whichdb is defined
216
- with open(_fname + '.db', 'wb'): pass
+ with open(_fname + '.db', 'wb') as f:
217
+ f.write(b'spam')
218
_bytes_fname = os.fsencode(_fname)
219
fnames = [_fname, os_helper.FakePath(_fname),
220
_bytes_fname, os_helper.FakePath(_bytes_fname)]
0 commit comments