On 2014/03/25 15:29, Dmitrij D. Czarkoff wrote:
> Stuart Henderson said:
> > On 2014/03/22 02:57, Dmitrij D. Czarkoff wrote:
> > > Hello!
> > > 
> > > I'm reposting this set of patches, as I find them quite important - at
> > > least for me the current devel/py-hg-git port was broken (I don't recall
> > > particular problem I was facing though), and this update fixes it.
> > > 
> > > devel/py-hg-git depends on devel/py-dulwich, and current version of
> > > hggit doesn't work with outdated version of dulwich we currently have in
> > > ports.
> > > 
> > > The patches for devel/py-dulwich are only needed for tests.  Several
> > > tests fail for devel/py-hg-git, seemingly because git developers have
> > > changed wording for some diagnostic messages.
> > 
> > I see this in dulwich tests; any ideas? (I don't use this or know how it
> > is supposed to look).
> 
> It looks like that to me:
> 
> ===>  Regression tests for py-dulwich-0.9.5
> cd /usr/ports/pobj/py-dulwich-0.9.5/dulwich-0.9.5 && nosetests
> .....S..............................................................................SS.SS.S...........................................................................................................................SS.S.S.....................S.S........................SSSSSSSSS.S............................................................................................................................................................................................................S..S.S......................................................................S..............................S........................................................................................................................................................................................................................................................................
> ----------------------------------------------------------------------
> Ran 855 tests in 139.736s
> 
> OK (SKIP=27)
> 
> Apparently I forgot to include devel/git in TEST_DEPENDS. Do you have
> git installed?

Yes, and now you've mentioned the git dependency, I've tried running
these tests with both 1.85 and 1.9.

Running nosetests with a ~/.noserc to bump verbosity,

dulwich.tests.self_test_suite ... ok
dulwich.tests.tutorial_test_suite ... ok
dulwich.tests.nocompat_test_suite ... ok
dulwich.tests.compat_test_suite ... ok
dulwich.tests.test_suite ... ok
test_archive (dulwich.tests.compat.test_client.DulwichHttpClientTest) ... SKIP: 
exporting archives not supported over http
test_fetch_pack (dulwich.tests.compat.test_client.DulwichHttpClientTest) ... 
ERROR
test_fetch_pack_no_side_band_64k 
(dulwich.tests.compat.test_client.DulwichHttpClientTest) ... ERROR
test_fetch_pack_zero_sha 
(dulwich.tests.compat.test_client.DulwichHttpClientTest) ... ERROR
test_incremental_fetch_pack 
(dulwich.tests.compat.test_client.DulwichHttpClientTest) ... ERROR
test_send_pack (dulwich.tests.compat.test_client.DulwichHttpClientTest) ... 
ERROR
test_send_pack_multiple_errors 
(dulwich.tests.compat.test_client.DulwichHttpClientTest) ... ERROR
test_send_pack_nothing_to_send 
(dulwich.tests.compat.test_client.DulwichHttpClientTest) ... ERROR
test_send_pack_one_error 
(dulwich.tests.compat.test_client.DulwichHttpClientTest) ... ERROR
test_send_remove_branch 
(dulwich.tests.compat.test_client.DulwichHttpClientTest) ... ERROR
test_send_without_report_status 
(dulwich.tests.compat.test_client.DulwichHttpClientTest) ... ERROR
test_archive (dulwich.tests.compat.test_client.DulwichMockSSHClientTest) ... ok
test_fetch_pack (dulwich.tests.compat.test_client.DulwichMockSSHClientTest) ... 
ok

.....and looking in dulwich/tests/compat/test_client.py, it's using
localhost.... and this rings a bell - for reasons of testing something else in
the past I only have an IPv6 entry for localhost in /etc/hosts, and that is what
causes the problem.

Working for me now too; so I will commit.

Reply via email to