diff --git a/easybuild/tools/filetools.py b/easybuild/tools/filetools.py index 4a9d77726a..52118304fe 100644 --- a/easybuild/tools/filetools.py +++ b/easybuild/tools/filetools.py @@ -2240,7 +2240,7 @@ def det_size(path): if os.path.exists(fullpath): installsize += os.path.getsize(fullpath) except OSError as err: - _log.warn("Could not determine install size: %s" % err) + _log.warning("Could not determine install size: %s" % err) return installsize diff --git a/test/framework/build_log.py b/test/framework/build_log.py index 21755b62b3..dcaa1620c3 100644 --- a/test/framework/build_log.py +++ b/test/framework/build_log.py @@ -208,7 +208,7 @@ def test_log_levels(self): log.error('kaput') log.deprecated('almost kaput', '10000000000000') log.raiseError = True - log.warn('this is a warning') + log.warning('this is a warning') log.info('fyi') log.debug('gdb') log.devel('tmi')