diff --git a/pipenv/core.py b/pipenv/core.py index f1b03c39..e3c0bb2a 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -118,7 +118,7 @@ def load_dot_env(project, as_dict=False): else: click.echo( crayons.normal(fix_utf8("Loading .env environment variables..."), bold=True), - err=True, + err=False, ) dotenv.load_dotenv(dotenv_file, override=True) project.s.initialize() diff --git a/tests/integration/test_run.py b/tests/integration/test_run.py index cf6a7f79..fd224c6a 100644 --- a/tests/integration/test_run.py +++ b/tests/integration/test_run.py @@ -36,12 +36,12 @@ multicommand = "bash -c \"cd docs && make html\"" assert c.returncode == 0 c = p.pipenv('run printfoo') assert c.returncode == 0 - assert c.stdout.splitlines()[0] == 'foo' + assert c.stdout.splitlines()[1] == 'foo' assert not c.stderr.strip() c = p.pipenv('run notfoundscript') assert c.returncode != 0 - assert c.stdout == '' + assert c.stdout == 'Loading .env environment variables...\n' if os.name != 'nt': # TODO: Implement this message for Windows. assert 'not found' in c.stderr @@ -60,7 +60,7 @@ multicommand = "bash -c \"cd docs && make html\"" c = p.pipenv("run scriptwithenv") assert c.returncode == 0 if os.name != "nt": # This doesn't work on CI windows. - assert c.stdout.strip() == "WORLD" + assert c.stdout.splitlines()[1] == "WORLD" @pytest.mark.run