…yError if it's not defined, like on Windows which usually doesn't have "HOME", but "HOMEDRIVE" and "HOMEPATH" instead.
``~/.gitconfig``, to prevent test isolation issues. Eventually this should probably happen in a more structural manner, by e.g. using a base TestCase class that always overrides $HOME.
dulwich.tests.test_object_store.DiskObjectStoreTests:test_add_thin_pack to avoid WindowsError: [Error 32] The process cannot access the file because it is being used by another process: '...\\temp\\tmpdqhxlw\\pack\\pack-08ff98a2737425627a64fab11a4a5c53ed26bf9a.idx' on Windows. There should be DiskObjectStore.close() to make this practical!
When using C stdio library, the stream must be flushed or repositioned before switching from write operations to read operations or vv. This applies to CPython as well since "File objects are implemented using C’s stdio package". http://docs.python.org/library/stdtypes.html#file-objects See also http://bugs.python.org/issue3207. DiskObjectStore._complete_thin_pack() didn't follow these rules which made the test dulwich.tests.test_object_store.DiskObjectStoreTests:test_add_thin_pack fail with IOError: [Errno 0] Error on Windows.
…ferent file path separators.
dulwich.tests.test_web.DumbHandlersTestCase:test_get_idx_file dulwich.tests.test_web.DumbHandlersTestCase:test_get_pack_file failing on Windows with "File not found" error.
dulwich.tests.test_blackbox.GitReceivePackTests:test_missing_arg dulwich.tests.test_blackbox.GitUploadPackTests:test_missing_arg to fail because of mismatched line terminators on Windows.
WindowsError: [Error 32] The process cannot access the file because it is being used by another process: '...'
…test suite fails to run even a single test.