Hi.

I'm trying to fix #739222 where tests fail (-> FTBFS) during execution
of nose's doctest plugin on something like :
    >>> import rdflib

    >>> g = rdflib.Graph()
    >>> result = g.parse("http://www.w3.org/2000/10/swap/test/meet/white.rdf";)

    >>> print("graph has %s statements." % len(g))
    graph has 19 statements.

I'm puzzled : I'm invoking the tests run with :
        PYBUILD_SYSTEM=custom \
        PYBUILD_TEST_ARGS="{interpreter} run_tests.py" \
        http_proxy= https_proxy= \
        dh_auto_test --buildsystem=pybuild

where run_tests.py will invoke nose with --with-doctest, but even though
the HTTP proxy variables being set, they don't seem to be preventing
urllib2 to try to access the file.

So there doesn't seem to be a way to notice until the network is really
brought down :-/

Instructions at https://wiki.debian.org/Python/Pybuild suggest that the
variables help, but probably only for pip etc. ?


In any case, an obvious fix here could be to prevent running doctest at
all.

But there might be a smarter way, to fake the existence of such a page
(retrieved through urllib2) so as the tests can be run offline ?

If anyone has suggestions...

Many thanks in advance.

Best regards,
-- 
Olivier BERGER 
http://www-public.telecom-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8
Ingenieur Recherche - Dept INF
Institut Mines-Telecom, Telecom SudParis, Evry (France)


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/87siofqim6....@inf-8660.int-evry.fr

Reply via email to