Test suite does not close db files
Bug #841273 reported by
Martin Packman
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Low
|
Unassigned | ||
Bazaar Git Plugin |
Triaged
|
Medium
|
Unassigned | ||
Bazaar Subversion Plugin |
Fix Released
|
Medium
|
Jelmer Vernooij | ||
Breezy |
Triaged
|
Medium
|
Unassigned |
Bug Description
Running the bzr-git test suite on windows, where the default behaviour is to prevent the deletion of an open file, causes lots of spam along the lines of:
While running: bzrlib.
Unable to remove testing dir ox.TestGitBlack
[Error 32] The process cannot access the file because it is being used by another process: u'%TMP%
When a temporary db is created, it should be closed and deleted as part of the test cleanup, rather than relying on posix file removal semantics.
Changed in bzr-svn: | |
status: | Triaged → Fix Released |
assignee: | nobody → Jelmer Vernooij (jelmer) |
milestone: | none → 1.1.1 |
tags: | added: check-for-breezy |
Changed in brz-git: | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | removed: check-for-breezy |
affects: | brz-git → brz |
tags: | added: git |
To post a comment you must log in.
Ideally we should just clear the contents of the cache database dictionary after every test.
Is there an easy way to register an cleanup command for bzr's TestCaseWithTra nsport, from outside of the class?