Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_urlwithfrag fail #61173

Closed
Ry mannequin opened this issue Jan 15, 2013 · 10 comments
Closed

test_urlwithfrag fail #61173

Ry mannequin opened this issue Jan 15, 2013 · 10 comments
Labels
build The build process and cross-build tests Tests in the Lib/test dir

Comments

@Ry
Copy link
Mannequin

Ry mannequin commented Jan 15, 2013

BPO 16969
Nosy @ezio-melotti
Files
  • test: ./python -m test -v test_urlwithfrag
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2013-01-18.21:09:19.801>
    created_at = <Date 2013-01-15.05:51:57.017>
    labels = ['build', 'tests']
    title = 'test_urlwithfrag fail'
    updated_at = <Date 2013-01-18.21:09:19.799>
    user = 'https://bugs.python.org/Ry'

    bugs.python.org fields:

    activity = <Date 2013-01-18.21:09:19.799>
    actor = 'ezio.melotti'
    assignee = 'none'
    closed = True
    closed_date = <Date 2013-01-18.21:09:19.801>
    closer = 'ezio.melotti'
    components = ['Tests']
    creation = <Date 2013-01-15.05:51:57.017>
    creator = 'Ry'
    dependencies = []
    files = ['28730']
    hgrepos = []
    issue_num = 16969
    keywords = []
    message_count = 10.0
    messages = ['180003', '180004', '180066', '180076', '180134', '180142', '180172', '180193', '180223', '180224']
    nosy_count = 3.0
    nosy_names = ['ezio.melotti', 'Ramchandra Apte', 'Ry']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'compile error'
    url = 'https://bugs.python.org/issue16969'
    versions = ['Python 3.3']

    @Ry
    Copy link
    Mannequin Author

    Ry mannequin commented Jan 15, 2013

    Prevents correct installation. OS: Linux Mint 12 Lisa.

    @Ry Ry mannequin added build The build process and cross-build tests Tests in the Lib/test dir labels Jan 15, 2013
    @ezio-melotti
    Copy link
    Member

    That's because there's no test file called test_urlwithfrag.py.
    Do you see any failure if you do ./python -m test -v test_urllib2net?

    @Ry
    Copy link
    Mannequin Author

    Ry mannequin commented Jan 16, 2013

    ./python -m test -v test_urllib2net
    == CPython 3.3.0 (default, Jan 14 2013, 20:45:36) [GCC 4.6.1]
    == Linux-3.0.0-29-generic-i686-with-debian-wheezy-sid little-endian
    == /home/ry/Desktop/Python-3.3.0/build/test_python_2080
    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.

    @ezio-melotti
    Copy link
    Member

    Sorry, the right command is: ./python -m test -v -uall test_urllib2net

    @Ry
    Copy link
    Mannequin Author

    Ry mannequin commented Jan 17, 2013

    ./python -m test -v -uall test_urllib2net

    == CPython 3.3.0 (default, Jan 14 2013, 20:45:36) [GCC 4.6.1]
    == Linux-3.0.0-29-generic-i686-with-debian-wheezy-sid little-endian
    == /home/ry/Desktop/Python-3.3.0/build/test_python_2264
    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_sni (test.test_urllib2net.HTTPSTests) ... skipped 'requires SSL support'
    test_custom_headers (test.test_urllib2net.OtherNetworkTests) ... ok
    test_file (test.test_urllib2net.OtherNetworkTests) ... ok
    test_ftp (test.test_urllib2net.OtherNetworkTests) ... ok
    test_sites_no_connection_close (test.test_urllib2net.OtherNetworkTests) ... ok
    test_urlwithfrag (test.test_urllib2net.OtherNetworkTests) ... FAIL
    test_close (test.test_urllib2net.CloseSocketTest) ... ok
    test_ftp_basic (test.test_urllib2net.TimeoutTest) ... ok
    test_ftp_default_timeout (test.test_urllib2net.TimeoutTest) ... ok
    test_ftp_no_timeout (test.test_urllib2net.TimeoutTest) ... ok
    test_ftp_timeout (test.test_urllib2net.TimeoutTest) ... ok
    test_http_basic (test.test_urllib2net.TimeoutTest) ... ok
    test_http_default_timeout (test.test_urllib2net.TimeoutTest) ... ok
    test_http_no_timeout (test.test_urllib2net.TimeoutTest) ... ok
    test_http_timeout (test.test_urllib2net.TimeoutTest) ... ok

    ======================================================================
    FAIL: test_urlwithfrag (test.test_urllib2net.OtherNetworkTests)
    ----------------------------------------------------------------------

    Traceback (most recent call last):
      File "/home/ry/Desktop/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 26.079s

    FAILED (failures=1, skipped=1)
    test test_urllib2net failed
    1 test failed:
    test_urllib2net

    @RamchandraApte
    Copy link
    Mannequin

    RamchandraApte mannequin commented Jan 17, 2013

    Hmmm. Because of the recent doc changes, that link is redirecting to "http://docs.python.org/2...". Even if we change that, for some reason, the fragment is disappearing when redirecting.

    @RamchandraApte RamchandraApte mannequin added type-bug An unexpected behavior, bug, or error and removed build The build process and cross-build labels Jan 17, 2013
    @Ry
    Copy link
    Mannequin Author

    Ry mannequin commented Jan 18, 2013

    I don't think compile is a valid command in mint.

    @ezio-melotti
    Copy link
    Member

    This has been fixed already in 652286ee23f8, but apparently the fix is not included in 3.3.0. I think it's safe to ignore the failure.

    In the first message you said that this "prevents correct installation". What did you mean exactly?

    @ezio-melotti ezio-melotti added build The build process and cross-build and removed type-bug An unexpected behavior, bug, or error labels Jan 18, 2013
    @Ry
    Copy link
    Mannequin Author

    Ry mannequin commented Jan 18, 2013

    Oops. I just realized that it works, I just had not added python3 to PATH. It installed correctly, and there was never any issue. My mistake.

    @ezio-melotti
    Copy link
    Member

    OK, I'll close the issue then.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    build The build process and cross-build tests Tests in the Lib/test dir
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant