[Python-Dev] Slow tests involving bsddb - timeout

skip at pobox.com skip at pobox.com
Sat Dec 8 14:38:40 CET 2007


    Guido> I think I've seen this too when running the bsddb3 unittest. I
    Guido> think it's caused by a previous test ending badly and leaving
    Guido> junk behind that the test suite doesn't properly remove before
    Guido> starting. But I don't recall the details.

    skip> Thanks, that at least gives me some hope that I can try to narrow
    skip> down the problem with a little binary searching.

The binary search wasn't very difficult.  Ran regrtest with the -v and -f
flags.   test_anydbm was the only test.  Here's the output:

    % ./python.exe -E -tt ../Lib/test/regrtest.py -f tests -v -uall
    test_anydbm
    test_anydbm_creation (test.test_anydbm.AnyDBMTestCase) ... ERROR
    test_anydbm_keys (test.test_anydbm.AnyDBMTestCase) ... ERROR
    test_anydbm_modification (test.test_anydbm.AnyDBMTestCase) ... ERROR
    test_anydbm_read (test.test_anydbm.AnyDBMTestCase) ... ERROR

    ======================================================================
    ERROR: test_anydbm_creation (test.test_anydbm.AnyDBMTestCase)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/Users/skip/src/python/trunk/Lib/test/test_anydbm.py", line 37, in test_anydbm_creation
        f = anydbm.open(_fname, 'c')
      File "/Users/skip/src/python/trunk/Lib/anydbm.py", line 83, in open
        return mod.open(file, flag, mode)
      File "/Users/skip/src/python/trunk/Lib/dbhash.py", line 16, in open
        return bsddb.hashopen(file, flag, mode)
      File "/Users/skip/src/python/trunk/Lib/bsddb/__init__.py", line 310, in hashopen
        d.open(file, db.DB_HASH, flags, mode)
    DBFileExistsError: (17, 'File exists -- __fop_file_setup:  Retry limit (100) exceeded')

    ======================================================================
    ERROR: test_anydbm_keys (test.test_anydbm.AnyDBMTestCase)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/Users/skip/src/python/trunk/Lib/test/test_anydbm.py", line 58, in test_anydbm_keys
        self.init_db()
      File "/Users/skip/src/python/trunk/Lib/test/test_anydbm.py", line 69, in init_db
        f = anydbm.open(_fname, 'n')
      File "/Users/skip/src/python/trunk/Lib/anydbm.py", line 83, in open
        return mod.open(file, flag, mode)
      File "/Users/skip/src/python/trunk/Lib/dbhash.py", line 16, in open
        return bsddb.hashopen(file, flag, mode)
      File "/Users/skip/src/python/trunk/Lib/bsddb/__init__.py", line 310, in hashopen
        d.open(file, db.DB_HASH, flags, mode)
    DBFileExistsError: (17, 'File exists -- __fop_file_setup:  Retry limit (100) exceeded')

    ======================================================================
    ERROR: test_anydbm_modification (test.test_anydbm.AnyDBMTestCase)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/Users/skip/src/python/trunk/Lib/test/test_anydbm.py", line 45, in test_anydbm_modification
        self.init_db()
      File "/Users/skip/src/python/trunk/Lib/test/test_anydbm.py", line 69, in init_db
        f = anydbm.open(_fname, 'n')
      File "/Users/skip/src/python/trunk/Lib/anydbm.py", line 83, in open
        return mod.open(file, flag, mode)
      File "/Users/skip/src/python/trunk/Lib/dbhash.py", line 16, in open
        return bsddb.hashopen(file, flag, mode)
      File "/Users/skip/src/python/trunk/Lib/bsddb/__init__.py", line 310, in hashopen
        d.open(file, db.DB_HASH, flags, mode)
    DBFileExistsError: (17, 'File exists -- __fop_file_setup:  Retry limit (100) exceeded')

    ======================================================================
    ERROR: test_anydbm_read (test.test_anydbm.AnyDBMTestCase)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/Users/skip/src/python/trunk/Lib/test/test_anydbm.py", line 52, in test_anydbm_read
        self.init_db()
      File "/Users/skip/src/python/trunk/Lib/test/test_anydbm.py", line 69, in init_db
        f = anydbm.open(_fname, 'n')
      File "/Users/skip/src/python/trunk/Lib/anydbm.py", line 83, in open
        return mod.open(file, flag, mode)
      File "/Users/skip/src/python/trunk/Lib/dbhash.py", line 16, in open
        return bsddb.hashopen(file, flag, mode)
      File "/Users/skip/src/python/trunk/Lib/bsddb/__init__.py", line 310, in hashopen
        d.open(file, db.DB_HASH, flags, mode)
    DBFileExistsError: (17, 'File exists -- __fop_file_setup:  Retry limit (100) exceeded')

    ----------------------------------------------------------------------
    Ran 4 tests in 404.353s

    FAILED (errors=4)
    test test_anydbm failed -- errors occurred; run in verbose mode for details
    1 test failed:
        test_anydbm

Skip


More information about the Python-Dev mailing list