Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 410555 - dev-python/rdflib-3.1.0 suffers a test failure; GraphTestCase
Summary: dev-python/rdflib-3.1.0 suffers a test failure; GraphTestCase
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: 410125
  Show dependency tree
 
Reported: 2012-04-02 13:43 UTC by Ian Delaney (RETIRED)
Modified: 2012-04-03 15:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
the build log (rdflib_build.log,29.61 KB, text/plain)
2012-04-02 13:43 UTC, Ian Delaney (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Delaney (RETIRED) gentoo-dev 2012-04-02 13:43:23 UTC
Created attachment 307487 [details]
the build log

archtester rdflib # emerge rdflib --jobs=1

----------------------------------------------------------------------------
File "/mnt/gen2/tmpdir/portage/dev-python/rdflib-3.1.0/work/rdflib-3.1.0/rdflib/__init__.py", line 19, in rdflib
Failed example:
    print "graph has %s statements." % len(g)
Expected:
    graph has 34 statements.
Got:
    graph has 0 statements.


----------------------------------------------------------------------
Ran 295 tests in 44.518s

  File "/usr/lib64/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 98] Address already in use

FAILED (errors=2, failures=1)
 * ERROR: dev-python/rdflib-3.1.0 failed (test phase):
 *   Testing failed with CPython 2.7 in testing() function
-----------------------------------------------------------

ERROR: testConNeg (test.test_graph.GraphTestCase)              [ X2 ]
URLError: <urlopen error [Errno 111] Connection refused>

File "/mnt/gen2/tmpdir/portage/dev-python/rdflib-3.1.0/work/rdflib-3.1.0/rdflib/__init__.py", line 17, in rdflib
Failed example:
    result = g.parse("http://eikeon.com/foaf.rdf")

probably because it is NOT there.  sheeeesh is getting a valid internet site so hard.  In the browser

http://www.eikeon.com/foaf.rdf

Daniel Krech

    Home
    Recipes

Page Not Found

The other; Connection refused && socket.error: [Errno 98] Address already in use
I shall happily leave open for investigation.
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2012-04-02 16:22:26 UTC
+  02 Apr 2012; Justin Lecher <jlec@gentoo.org> rdflib-3.1.0.ebuild,
+  +files/rdflib-3.1.0-test.patch:
+  backport latest fix for tests, #410555
+
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2012-04-03 15:06:52 UTC
archtester rdflib # emerge =dev-python/rdflib-3.1.0 --jobs=1

Ran 295 tests in 41.501s

FAILED (errors=2)

URLError: <urlopen error [Errno 111] Connection refused>

HOWEVER; this was run in a chroot.  With python packages in particular I have had spurious results, so I ran 

archtester rdflib # ebuild rdflib-3.1.0.ebuild clean test
----------------------------------------------------------------
Ran 295 tests in 43.519s

OK
in this unstable host.  Yep, it is fixed.