Merge lp:~jameinel/u1db/win32-tweaks into lp:u1db
Proposed by
John A Meinel
Status: | Merged |
---|---|
Merged at revision: | 107 |
Proposed branch: | lp:~jameinel/u1db/win32-tweaks |
Merge into: | lp:u1db |
Diff against target: |
122 lines (+22/-3) 7 files modified
u1db/__init__.py (+4/-0) u1db/backends/inmemory.py (+5/-0) u1db/backends/sqlite_backend.py (+3/-0) u1db/commandline/client.py (+1/-0) u1db/tests/commandline/test_client.py (+4/-1) u1db/tests/commandline/test_serve.py (+2/-2) u1db/tests/test_backends.py (+3/-0) |
To merge this branch: | bzr merge lp:~jameinel/u1db/win32-tweaks |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Samuele Pedroni | Approve | ||
Review via email: mp+82156@code.launchpad.net |
Description of the change
I logged into Windows and ran the test suite.
The tests generally seem to pass, but test suite cleanup fails because the sqlite file handle is still open. In general, trusting Python's gc to close file handles is pretty weak (which is why they invented context managers).
I think having an "I'm done with this Database object, please release its resources" is a reasonable thing to have.
The test suite now passes cleanly on Windows.
To post a comment you must log in.
+1