From 987b45af9ec719ce2ded8615bb7177979e688184 Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Tue, 27 Aug 2019 13:35:55 +0530 Subject: [PATCH] Move docstring to appropriately placed comment --- tests/functional/test_warning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functional/test_warning.py b/tests/functional/test_warning.py index 2542aa80c0b..edde04429ca 100644 --- a/tests/functional/test_warning.py +++ b/tests/functional/test_warning.py @@ -2,7 +2,6 @@ def test_environ(script, tmpdir): - """$PYTHONWARNINGS was added in python2.7""" demo = tmpdir.joinpath('warnings_demo.py') demo.write_text(textwrap.dedent(''' from logging import basicConfig @@ -18,6 +17,7 @@ def test_environ(script, tmpdir): expected = 'WARNING:pip._internal.deprecations:DEPRECATION: deprecated!\n' assert result.stderr == expected + # $PYTHONWARNINGS was added in python2.7 script.environ['PYTHONWARNINGS'] = 'ignore' result = script.run('python', demo) assert result.stderr == ''