Compare commits

...

2 commits

Author SHA1 Message Date
Miss Islington (bot)
b81bab6190
[3.13] Remove reference to docs mailing list for bug reports (GH-122323) (#140202)
Remove reference to docs mailing list for bug reports (GH-122323)
(cherry picked from commit 33586d64ca)

Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
2025-10-16 14:07:07 +03:00
Miss Islington (bot)
9fb32eb83e
[3.13] gh-140170: Fix test_site with -s flag (GH-140179) (#140201)
gh-140170: Fix test_site with -s flag (GH-140179)

Commit
(cherry picked from commit 7ac94fcb1d)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-10-16 10:57:00 +00:00
2 changed files with 7 additions and 9 deletions

View file

@ -16,21 +16,16 @@ Documentation bugs
==================
If you find a bug in this documentation or would like to propose an improvement,
please submit a bug report on the :ref:`tracker <using-the-tracker>`. If you
please submit a bug report on the :ref:`issue tracker <using-the-tracker>`. If you
have a suggestion on how to fix it, include that as well.
You can also open a discussion item on our
`Documentation Discourse forum <https://discuss.python.org/c/documentation/26>`_.
If you find a bug in the theme (HTML / CSS / JavaScript) of the
documentation, please submit a bug report on the `python-doc-theme bug
documentation, please submit a bug report on the `python-doc-theme issue
tracker <https://github.com/python/python-docs-theme>`_.
If you're short on time, you can also email documentation bug reports to
docs@python.org (behavioral bugs can be sent to python-list@python.org).
'docs@' is a mailing list run by volunteers; your request will be noticed,
though it may take a while to be processed.
.. seealso::
`Documentation bugs`_

View file

@ -836,12 +836,15 @@ def get_excepted_output(self, *args):
return 10, None
def invoke_command_line(self, *args):
args = ["-m", "site", *args]
cmd_args = []
if sys.flags.no_user_site:
cmd_args.append("-s")
cmd_args.extend(["-m", "site", *args])
with EnvironmentVarGuard() as env:
env["PYTHONUTF8"] = "1"
env["PYTHONIOENCODING"] = "utf-8"
proc = spawn_python(*args, text=True, env=env,
proc = spawn_python(*cmd_args, text=True, env=env,
encoding='utf-8', errors='replace')
output = kill_python(proc)