From 1c7bb3afd9db92164523c87be679b447f23bdd36 Mon Sep 17 00:00:00 2001 From: Dan Ryan Date: Wed, 21 Nov 2018 22:58:54 -0500 Subject: [PATCH] Fix test for warnings Signed-off-by: Dan Ryan --- tests/integration/test_lock.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/integration/test_lock.py b/tests/integration/test_lock.py index 3605e553..831b1644 100644 --- a/tests/integration/test_lock.py +++ b/tests/integration/test_lock.py @@ -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