Re: test failed: test_urlwithfrag

Discussion in 'Python' started by Kev Dwyer, Jan 19, 2013.

  1. Kev Dwyer

    Kev Dwyer Guest

    Terry Reedy wrote:

    > On 1/7/2013 1:26 PM, Elli Lola wrote:
    >
    >> $ ./python -m test -v test_urlwithfrag
    >>
    >> == CPython 3.3.0 (default, Jan 4 2013, 23:08:00) [GCC 4.6.3]
    >> == Linux-3.2.0-35-generic-pae-i686-with-debian-wheezy-sid little-endian
    >> == /home/me/Programme/Python/Python-3.3.0/build/test_python_30744
    >> Testing with flags: sys.flags(debug=0, inspect=0, interactive=0,
    >> optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0,
    >> ignore_environment=0, verbose=0, bytes_warning=0, quiet=0,
    >> hash_randomization=1)
    >> [1/1] test_urlwithfrag
    >> test test_urlwithfrag crashed -- Traceback (most recent call last):
    >> File "/home/me/Programme/Python/Python-3.3.0/Lib/test/regrtest.py",
    >> line 1213, in runtest_inner
    >> the_package = __import__(abstest, globals(), locals(), [])
    >> ImportError: No module named 'test.test_urlwithfrag'
    >>
    >> 1 test failed:
    >> test_urlwithfrag

    >
    > Read the message I sent you before.
    >
    > (To everyone else, I already explained that the error message means
    > exactly what it says and listed the test_urlxxxx files that do exist. No
    > need to repeat a third time.)
    >


    I encountered the OP's error message while building Python 3.3 today.

    $ make test
    <snip>

    FAIL: test_urlwithfrag (test.test_urllib2net.OtherNetworkTests)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
    File "/usr/src/packages/BUILD/Python-3.3.0/Lib/test/test_urllib2net.py",
    line 165, in test_urlwithfrag
    "http://docs.python.org/glossary.html#glossary")
    AssertionError: 'http://docs.python.org/2/glossary.html' !=
    'http://docs.python.org/glossary.html#glossary'
    - http://docs.python.org/2/glossary.html
    ? --
    + http://docs.python.org/glossary.html#glossary
    ? +++++++++


    ----------------------------------------------------------------------
    Ran 15 tests in 15.307s

    FAILED (failures=1, skipped=1)
    test test_urllib2net failed
    make: *** [test] Error 1


    $ ./python -m test -v test_urllib2net
    == CPython 3.3.0 (default, Jan 19 2013, 13:46:53) [GCC 4.6.2]
    == Linux-3.1.10-1.16-desktop-x86_64-with-SuSE-12.1-x86_64 little-endian
    == /usr/src/packages/BUILD/Python-3.3.0/build/test_python_10447
    Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0,
    dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0,
    verbose=0, bytes_warning=0, quiet=0, hash_randomization=1)
    [1/1] test_urllib2net
    test_urllib2net skipped -- Use of the 'network' resource not enabled
    1 test skipped:
    test_urllib2net
    Those skips are all expected on linux.


    $ ./python -m test -v test_urlwithfrag
    == CPython 3.3.0 (default, Jan 19 2013, 13:46:53) [GCC 4.6.2]
    == Linux-3.1.10-1.16-desktop-x86_64-with-SuSE-12.1-x86_64 little-endian
    == /usr/src/packages/BUILD/Python-3.3.0/build/test_python_10453
    Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0,
    dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0,
    verbose=0, bytes_warning=0, quiet=0, hash_randomization=1)
    [1/1] test_urlwithfrag
    test test_urlwithfrag crashed -- Traceback (most recent call last):
    File "/usr/src/packages/BUILD/Python-3.3.0/Lib/test/regrtest.py", line
    1213, in runtest_inner
    the_package = __import__(abstest, globals(), locals(), [])
    ImportError: No module named 'test.test_urlwithfrag'

    1 test failed:
    test_urlwithfrag

    The bug has been fixed - see http://bugs.python.org/issue16969

    Cheers,

    Kev
    Kev Dwyer, Jan 19, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. sck10
    Replies:
    6
    Views:
    884
    sck10
    Sep 1, 2006
  2. kiran
    Replies:
    5
    Views:
    3,358
  3. Skybuck Flying

    Call oddities: &Test() vs &Test vs Test

    Skybuck Flying, Oct 4, 2009, in forum: C Programming
    Replies:
    1
    Views:
    678
    Skybuck Flying
    Oct 4, 2009
  4. Elli Lola

    test failed: test_urlwithfrag

    Elli Lola, Jan 7, 2013, in forum: Python
    Replies:
    1
    Views:
    129
    Irmen de Jong
    Jan 7, 2013
  5. Terry Reedy

    Re: test failed: test_urlwithfrag

    Terry Reedy, Jan 8, 2013, in forum: Python
    Replies:
    0
    Views:
    128
    Terry Reedy
    Jan 8, 2013
Loading...

Share This Page