mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Use logger.warning instead of deprecated logger.warn
This commit is contained in:
parent
10a8fb4c5a
commit
46582e5ab6
2 changed files with 3 additions and 3 deletions
|
@ -803,8 +803,8 @@ class WheelBuilder(object):
|
|||
try:
|
||||
ensure_dir(output_dir)
|
||||
except OSError as e:
|
||||
logger.warn("Building wheel for %s failed: %s",
|
||||
req.name, e)
|
||||
logger.warning("Building wheel for %s failed: %s",
|
||||
req.name, e)
|
||||
build_failure.append(req)
|
||||
continue
|
||||
else:
|
||||
|
|
|
@ -77,7 +77,7 @@ def test_check_compatibility():
|
|||
wheel.check_compatibility(higher_v, name)
|
||||
assert 'is not compatible' in str(e)
|
||||
|
||||
# Should only log.warn - minor version is greator
|
||||
# Should only log.warning - minor version is greater
|
||||
higher_v = (vc[0], vc[1] + 1)
|
||||
wheel.check_compatibility(higher_v, name)
|
||||
|
||||
|
|
Loading…
Reference in a new issue