diff --git a/pip/wheel.py b/pip/wheel.py index 3c5ac9b902fde08b37761a60abf84088ec9c0d19..b257d76651b1557eb4dd5859b27e44fc0ac902ae 100644 --- a/pip/wheel.py +++ b/pip/wheel.py @@ -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: diff --git a/tests/unit/test_wheel.py b/tests/unit/test_wheel.py index 734ac1aab8859b067e9520a4e69416c6f744651e..b6dc1f6072713373b011a2bc2c28f426c2487e8c 100644 --- a/tests/unit/test_wheel.py +++ b/tests/unit/test_wheel.py @@ -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)