Use logger.warning instead of deprecated logger.warn

This commit is contained in:
Ville Skyttä 2016-04-15 16:30:28 +03:00
parent 10a8fb4c5a
commit 46582e5ab6
2 changed files with 3 additions and 3 deletions

View File

@ -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:

View File

@ -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)