[Xapian-tickets] [Xapian] #354: Python bindings failing tests on Windows

Xapian nobody at xapian.org
Wed Mar 25 16:30:03 GMT 2009


#354: Python bindings failing tests on Windows
-------------------------------+--------------------------------------------
 Reporter:  charliejuggler     |       Owner:  olly     
     Type:  defect             |      Status:  new      
 Priority:  normal             |   Milestone:  1.1.0    
Component:  Xapian-bindings    |     Version:  SVN trunk
 Severity:  normal             |   Blockedby:           
 Platform:  Microsoft Windows  |    Blocking:           
-------------------------------+--------------------------------------------
 The following failures happen on both Python 2.4 and 2.5.


 Running test: postingsource... FAILED

 pythontest2.py:987:<type 'exceptions.WindowsError'>: [Error 32] The
 process cann
 ot access the file because it is being used by another process:
 'db_test_posting
 source\\flintlock'
    985     db.close()
    986     del db
 -> 987     shutil.rmtree(dbpath)
    988
    989 def test_postingsource2():
 Traceback (most recent call last):
   File "C:\work\xapian\xapian-SVN\xapian-
 core\win32\Release\Python25\testsuite2.
 py", line 201, in runtest
     test_fn()
   File "C:\work\xapian\xapian-SVN\xapian-
 core\win32\Release\Python25\pythontest2
 .py", line 987, in test_postingsource
     shutil.rmtree(dbpath)
   File "c:\Python25\lib\shutil.py", line 174, in rmtree
     onerror(os.remove, fullname, sys.exc_info())
   File "c:\Python25\lib\shutil.py", line 172, in rmtree
     os.remove(fullname)

 Xapian version: 1.1.0
 Platform: Windows XP (5.1.2600)

 When reporting this problem, please quote all the preceding lines from
 "pythontest2.py:987" onwards.

 Running test: postingsource2... FAILED

 pythontest2.py:1013:<type 'exceptions.WindowsError'>: [Error 32] The
 process can
 not access the file because it is being used by another process:
 'db_test_postin
 gsource2\\flintlock'
   1011     db.close()
   1012     del db
 ->1013     shutil.rmtree(dbpath)
   1014
   1015 def test_value_stats():
 Traceback (most recent call last):
   File "C:\work\xapian\xapian-SVN\xapian-
 core\win32\Release\Python25\testsuite2.
 py", line 201, in runtest
     test_fn()
   File "C:\work\xapian\xapian-SVN\xapian-
 core\win32\Release\Python25\pythontest2
 .py", line 1013, in test_postingsource2
     shutil.rmtree(dbpath)
   File "c:\Python25\lib\shutil.py", line 174, in rmtree
     onerror(os.remove, fullname, sys.exc_info())
   File "c:\Python25\lib\shutil.py", line 172, in rmtree
     os.remove(fullname)

 Xapian version: 1.1.0
 Platform: Windows XP (5.1.2600)


 31 tests passed, 2 tests failed
 NMAKE : fatal error U1077: 'c:\Python25\python.exe' : return code '0x1'
 Stop.

-- 
Ticket URL: <http://trac.xapian.org/ticket/354>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list