This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vinay.sajip
Recipients ixokai, ronaldoussoren, vinay.sajip
Date 2011-07-19.11:29:04
SpamBayes Score 1.556808e-06
Marked as misclassified No
Message-id <1311074945.92.0.488222810202.issue10881@psf.upfronthosting.co.za>
In-reply-to
Content
I'd like to reopen this, as it doesn't seem to be a duplicate of #8084. Specifically, test_getsitepackages in test_sitepackages appears to be wrong, since it has a correct test for platform builds later in the method, but the failure occurs earlier because the path "os.sep == '/'" is taken on OS X. The test should be restructured as e.g.

    if sys.platform in ('os2emx', 'riscos'):
        # stuff for OS/2, RISCOS
    elif (sys.platform == "darwin" and
            sysconfig.get_config_var("PYTHONFRAMEWORK")):
        # OS X platform builds
    elif os.sep == '/':
        # OS X non-platform builds, Linux, FreeBSD etc.
    else:
        # other platforms

That the test itself is broken is not the thrust of #8084.
History
Date User Action Args
2011-07-19 11:29:06vinay.sajipsetrecipients: + vinay.sajip, ixokai, ronaldoussoren
2011-07-19 11:29:05vinay.sajipsetmessageid: <1311074945.92.0.488222810202.issue10881@psf.upfronthosting.co.za>
2011-07-19 11:29:05vinay.sajiplinkissue10881 messages
2011-07-19 11:29:04vinay.sajipcreate