Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#179 closed defect (released)

Python bindings tests fail at spell..

Reported by: Charlie Hull Owned by: Richard Boulton
Priority: normal Milestone:
Component: Xapian-bindings Version: 1.0.2
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Operating System: Microsoft Windows

Description

Here's the VERBOSE output:

Running test: queryterms_iter... ok Running test: spell... FAILED

pythontest.py:816:<type 'exceptions.WindowsError'>: [Error 13] The process canno t access the file because it is being used by another process: 'flinttest_spell\ \flintlock'

814 expect([(item.term, item.termfreq) for item in dbr.spellings()], [('h

ello', 1), ('mell', 2)])

815

-> 816 shutil.rmtree(dbpath)

817 818 # The legacy sequence API is only supported for Python >= 2.3 so don't tr

y Traceback (most recent call last):

File "C:\work\xapian-releases\xapian-core-1.0.2\win32\Release\Python\testsuite

.py", line 200, in runtest

test_fn()

File "pythontest.py", line 816, in test_spell

shutil.rmtree(dbpath)

File "C:\Program Files\Python25\lib\shutil.py", line 174, in rmtree

onerror(os.remove, fullname, sys.exc_info())

File "C:\Program Files\Python25\lib\shutil.py", line 172, in rmtree

os.remove(fullname)

Xapian version: 1.0.2 Platform: Windows XP (5.1.2600)

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

Running test: synonyms_iter... FAILED

pythontest.py:794:<type 'exceptions.WindowsError'>: [Error 13] The process canno t access the file because it is being used by another process: 'flinttest_synony ms_iter
flintlock'

792 expect([item for item in dbr.synonym_keys('hello')], hello) 793

-> 794 shutil.rmtree(dbpath)

795 796 def test_spell():

Traceback (most recent call last):

File "C:\work\xapian-releases\xapian-core-1.0.2\win32\Release\Python\testsuite

.py", line 200, in runtest

test_fn()

File "pythontest.py", line 794, in test_synonyms_iter

shutil.rmtree(dbpath)

File "C:\Program Files\Python25\lib\shutil.py", line 174, in rmtree

onerror(os.remove, fullname, sys.exc_info())

File "C:\Program Files\Python25\lib\shutil.py", line 172, in rmtree

os.remove(fullname)

Xapian version: 1.0.2 Platform: Windows XP (5.1.2600)

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

Running test: termlist_iter... ok Running test: value_iter... ok 14 tests passed, 2 tests failed NMAKE : fatal error U1077: '"c:\Program Files\Python25\python.exe"' : return cod e '0x1' Stop.

Change History (5)

comment:1 by Richard Boulton, 17 years ago

Owner: changed from Olly Betts to Richard Boulton

comment:2 by Richard Boulton, 17 years ago

I've put in code to delete the database handles before deleting the database - hopefully this will now work. (Please test, and set the bug to FIXED if it does.)

comment:3 by Richard Boulton, 17 years ago

Status: newassigned

comment:4 by Charlie Hull, 17 years ago

Resolution: fixed
Status: assignedclosed

comment:5 by Olly Betts, 17 years ago

Operating System: Microsoft Windows
Resolution: fixedreleased

Fixed in 1.0.3

Note: See TracTickets for help on using tickets.