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:
Pradyun Gedam 2022-01-11 19:23:08 +00:00
parent eb462744da
commit deb2d754e7
No known key found for this signature in database
GPG Key ID: FF99710C4332258E
2 changed files with 4 additions and 2 deletions

View File

@ -6,8 +6,10 @@ import sys
from setuptools import setup
print(f"HELLO FROM CHATTYMODULE {sys.argv[1]}")
print(os.environ)
print(sys.argv)
print(sys.executable)
print(sys.version)
if "--fail" in sys.argv:
print("I DIE, I DIE")
sys.exit(1)

View File

@ -1739,7 +1739,7 @@ def test_install_editable_with_wrong_egg_name(
"fragments."
) in result.stderr
if resolver_variant == "2020-resolver":
assert "has inconsistent" in result.stderr, str(result)
assert "has inconsistent" in result.stdout, str(result)
else:
assert "Successfully installed pkga" in str(result), str(result)