summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_json
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2018-04-15 11:52:57 (GMT)
committerGitHub <noreply@github.com>2018-04-15 11:52:57 (GMT)
commit82a948105920100ca2ec5c2340bc3890adcfe778 (patch)
treeb6ed9b9402c0e83386082933015b706e58db40d7 /Lib/test/test_json
parent480ab05d5fee2b8fa161f799af33086a4e68c7dd (diff)
downloadcpython-82a948105920100ca2ec5c2340bc3890adcfe778.zip
cpython-82a948105920100ca2ec5c2340bc3890adcfe778.tar.gz
cpython-82a948105920100ca2ec5c2340bc3890adcfe778.tar.bz2
bpo-33185: Fix regression in pydoc CLI sys.path handling (GH-6419)
The pydoc CLI assumed -m pydoc would add the empty string to sys.path, and hence got confused when it switched to adding the full initial working directory instead. This refactors the pydoc CLI path manipulation to be more testable, and ensures it won't accidentally remove the standard library directory containing pydoc itself from sys.path.
Diffstat (limited to 'Lib/test/test_json')
0 files changed, 0 insertions, 0 deletions