Fix test for warnings

Signed-off-by: Dan Ryan <dan@danryan.co>
This commit is contained in:
Dan Ryan
2018-11-21 22:58:54 -05:00
parent 031afba5be
commit 1c7bb3afd9
+4
View File
@@ -512,4 +512,8 @@ def test_lock_no_warnings(PipenvInstance, pypi):
os.environ["PYTHONWARNINGS"] = str("once")
c = p.pipenv("install six")
assert c.return_code == 0
c = p.pipenv('run python -c "import warnings; warnings.warn(\\"This is a warning\\", DeprecationWarning); print(\\"hello\\")"')
assert c.return_code == 0
assert "Warning" in c.err
assert "Warning" not in c.out
assert "hello" in c.out