[issue17198] dbm.whichdbm references non-existent 'ndbm'

R. David Murray report at bugs.python.org
Thu Feb 14 04:00:08 CET 2013


R. David Murray added the comment:

The code appears to be correct, but I think we need to add an explicit import for ndbm in the __init__ file.  Right now I think it is only passing the tests because the test infrastructure imports all the dbm modules, including ndbm.

(I did not realize that doing 'import X.abc' causes 'abc' to be defined in the X.__init__.py module's namespace, but of course it must once I thought about it.)

The tricky bit here is writing a test case :)

----------
nosy: +r.david.murray
stage: needs patch -> 

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17198>
_______________________________________


More information about the Python-bugs-list mailing list