[Python-Dev] test_bsddb185 failing under OS X
Brett C.
drifty@alum.berkeley.edu
Sat, 17 May 2003 11:22:00 -0700
Brett C. wrote:
> No success for me when it is using dumbdbm:
>
> ======================================================================
> ERROR: test_anydbm_create (__main__.Bsddb185Tests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "Lib/test/test_bsddb185.py", line 39, in test_anydbm_create
> os.rmdir(tmpdir)
> OSError: [Errno 66] Directory not empty: '/tmp/tmpkiVKcZ'
>
> ----------------------------------------------------------------------
>
> Looks like foo.dat and foo.dir are left (files used by the DB?). I will
> fix the test again to be more agressive about deleting files.
>
> ... done. Just used shutil.rmtree instead of the nested 'try'
> statements that called os.unlink and os.rmdir . Now the tests pass for
> dumbdbm. So it seems to be dbm.so for some reason.
>
But then Skip checked in the exact change I was going to I think almost
simultaneously. And guess what? Now the darned tests pass using dbm!
I am going to do a completely clean compile and test again to make sure
this is not a fluke since the only change was ``cvs update`` for
test_bsddb185.py and that only changed how files were deleted.
Ah, the joys of coding.
-Brett