mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Tweak the chattymodule to not leak potentially information
I'd like to use this in screenshots, but the os.environ makes it a bit tricky to do.
This commit is contained in:
parent
eb462744da
commit
deb2d754e7
|
@ -6,8 +6,10 @@ import sys
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
print(f"HELLO FROM CHATTYMODULE {sys.argv[1]}")
|
print(f"HELLO FROM CHATTYMODULE {sys.argv[1]}")
|
||||||
print(os.environ)
|
|
||||||
print(sys.argv)
|
print(sys.argv)
|
||||||
|
print(sys.executable)
|
||||||
|
print(sys.version)
|
||||||
|
|
||||||
if "--fail" in sys.argv:
|
if "--fail" in sys.argv:
|
||||||
print("I DIE, I DIE")
|
print("I DIE, I DIE")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
|
@ -1739,7 +1739,7 @@ def test_install_editable_with_wrong_egg_name(
|
||||||
"fragments."
|
"fragments."
|
||||||
) in result.stderr
|
) in result.stderr
|
||||||
if resolver_variant == "2020-resolver":
|
if resolver_variant == "2020-resolver":
|
||||||
assert "has inconsistent" in result.stderr, str(result)
|
assert "has inconsistent" in result.stdout, str(result)
|
||||||
else:
|
else:
|
||||||
assert "Successfully installed pkga" in str(result), str(result)
|
assert "Successfully installed pkga" in str(result), str(result)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue