Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

site.{usercustomize,sitecustomize} hooks are never tested #108747

Closed
Labels
stdlibStandard Library Python modules in the Lib/ directorytestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error
@sobolevn

Description

@sobolevn

Bug report

They are documented:

The Customization Modules-------------------------Python provides two hooks to let you customize it::mod:`sitecustomize` and:mod:`usercustomize`.  To see how it works, you need first to find the locationof your user site-packages directory.  Start Python and run this code::   >>> import site   >>> site.getusersitepackages()   '/home/user/.local/lib/python3.5/site-packages'Now you can create a file named:file:`usercustomize.py` in that directory andput anything you want in it.  It will affect every invocation of Python, unlessit is started with the:option:`-s` option to disable the automatic import.:mod:`sitecustomize` works in the same way, but is typically created by anadministrator of the computer in the global site-packages directory, and isimported before:mod:`usercustomize`.  See the documentation of the:mod:`site`module for more details.

But, they are not tested anywhere in the CPython.
I think that adding these test might be worth it, in case the setup is reliable.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp