Skip to content

Commit

Permalink
Merge pull request pypa#6933 from pradyunsg/misc/warning-cleanup
Browse files Browse the repository at this point in the history
Move docstring to appropriately placed comment
  • Loading branch information
pradyunsg authored Sep 1, 2019
2 parents 5f8a332 + 987b45a commit d764181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/functional/test_warning.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 == ''

0 comments on commit d764181

Please sign in to comment.