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

android: test_posixpath fails #71120

Closed
xdegaye mannequin opened this issue May 3, 2016 · 5 comments
Closed

android: test_posixpath fails #71120

xdegaye mannequin opened this issue May 3, 2016 · 5 comments
Labels
build The build process and cross-build stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@xdegaye
Copy link
Mannequin

xdegaye mannequin commented May 3, 2016

BPO 26933
Nosy @larryhastings, @xdegaye, @serhiy-storchaka, @moreati
Superseder
  • bpo-24950: FAIL: test_expanduser when $HOME=/
  • 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 2016-05-03.15:26:15.809>
    created_at = <Date 2016-05-03.14:50:47.778>
    labels = ['type-bug', 'library', 'build']
    title = 'android: test_posixpath fails'
    updated_at = <Date 2016-05-03.17:52:43.095>
    user = 'https://github.com/xdegaye'

    bugs.python.org fields:

    activity = <Date 2016-05-03.17:52:43.095>
    actor = 'xdegaye'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-05-03.15:26:15.809>
    closer = 'serhiy.storchaka'
    components = ['Library (Lib)', 'Cross-Build']
    creation = <Date 2016-05-03.14:50:47.778>
    creator = 'xdegaye'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 26933
    keywords = []
    message_count = 5.0
    messages = ['264734', '264739', '264748', '264749', '264750']
    nosy_count = 4.0
    nosy_names = ['larry', 'xdegaye', 'serhiy.storchaka', 'Alex.Willmer']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '24950'
    type = 'behavior'
    url = 'https://bugs.python.org/issue26933'
    versions = ['Python 3.6']

    @xdegaye
    Copy link
    Mannequin Author

    xdegaye mannequin commented May 3, 2016

    test_posixpath fails on an android emulator running an x86 system image at API level 21.

    On android we have:
    root@generic_x86:/data/local/tmp # python
    Python 3.6.0a0 (default:f4c6dab59cd8+, May  3 2016, 10:42:45) 
    [GCC 4.9 20140827 (prerelease)] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import posixpath, pwd, os
    >>> posixpath.expanduser("~")
    '/data'
    >>> pwd.getpwuid(os.getuid()).pw_dir
    '/'
    >>>

    Test results:

    ======================================================================
    FAIL: test_expanduser (test.test_posixpath.PosixPathTest)
    ----------------------------------------------------------------------

    Traceback (most recent call last):
      File "/sdcard/org.bitbucket.pyona/lib/python3.6/test/test_posixpath.py", line 247, in test_expanduser
        self.assertEqual(posixpath.expanduser("~"), home.rstrip("/"))
    AssertionError: '/' != ''
    - /
    + 

    Ran 54 tests in 0.046s

    FAILED (failures=1)
    test test_posixpath failed
    1 test failed:
    test_posixpath
    Total duration: 0:00:01

    @xdegaye xdegaye mannequin added stdlib Python modules in the Lib dir build The build process and cross-build type-bug An unexpected behavior, bug, or error labels May 3, 2016
    @serhiy-storchaka
    Copy link
    Member

    This is a duplicate of bpo-24950.

    @xdegaye
    Copy link
    Mannequin Author

    xdegaye mannequin commented May 3, 2016

    That was fast!
    Thanks Serhiy.

    @serhiy-storchaka
    Copy link
    Member

    I'll push a patch for bpo-24950 in short time.

    Try to search precedences for other your issues. May be they have patches, additional information or experienced people.

    @xdegaye
    Copy link
    Mannequin Author

    xdegaye mannequin commented May 3, 2016

    You are right. I will do that.

    @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 stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant