> Well, sure, not running the code that breaks solves the problem. But can you > then run the tests multiple times ? > [Thomas Koch] note that previously closeStore() was not called, but now when calling it the test_PyLucene runs OK.
And yes I can run tests several times- on PyLucene2.9 the index-dirs testrepo and testpyrepo are cleaned up (i.e. removed) after tests succeed. With PyLucene3.1 the testpyrepo is left (because test_PythonDirectory.py fails to cleanup). > > So this looks like a problem in the test-code rather than in > > windows/python/pyLucene - some store not being closed results in file lock. > > Not sure if the bug is there. Me neither ,-( Just for test_PyLucene the 'test-code-fix' fixes the issue. Another problem is the dependency between test_PythonDirectory and test_PyLucene: test_PythonDirectory uses tests defined in test_PyLucene which makes it bit difficult to figure out where the problem is... So has anyone seen this problem before? Regards, Thomas