diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-10-26 12:17:20 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-10-26 12:17:20 (GMT) |
commit | b9e46e95f8b0b85fc97e119c008bae32f585c405 (patch) | |
tree | 82d7f5156c084d6d419fdf4221cd5346154c4e66 /Lib | |
parent | 82a647b72195a81ca424a0323cbe832dd633d4c2 (diff) | |
download | cpython-b9e46e95f8b0b85fc97e119c008bae32f585c405.zip cpython-b9e46e95f8b0b85fc97e119c008bae32f585c405.tar.gz cpython-b9e46e95f8b0b85fc97e119c008bae32f585c405.tar.bz2 |
Changed warn() to warning() in logging tests.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_logging.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 556bbba..7c8bab5 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -196,17 +196,17 @@ class BuiltinLevelsTest(BaseTest): INF.log(logging.CRITICAL, m()) INF.error(m()) - INF.warn(m()) + INF.warning(m()) INF.info(m()) DEB.log(logging.CRITICAL, m()) DEB.error(m()) - DEB.warn (m()) - DEB.info (m()) + DEB.warning(m()) + DEB.info(m()) DEB.debug(m()) # These should not log. - ERR.warn(m()) + ERR.warning(m()) ERR.info(m()) ERR.debug(m()) @@ -240,7 +240,7 @@ class BuiltinLevelsTest(BaseTest): INF_ERR.error(m()) # These should not log. - INF_ERR.warn(m()) + INF_ERR.warning(m()) INF_ERR.info(m()) INF_ERR.debug(m()) @@ -264,14 +264,14 @@ class BuiltinLevelsTest(BaseTest): # These should log. INF_UNDEF.log(logging.CRITICAL, m()) INF_UNDEF.error(m()) - INF_UNDEF.warn(m()) + INF_UNDEF.warning(m()) INF_UNDEF.info(m()) INF_ERR_UNDEF.log(logging.CRITICAL, m()) INF_ERR_UNDEF.error(m()) # These should not log. INF_UNDEF.debug(m()) - INF_ERR_UNDEF.warn(m()) + INF_ERR_UNDEF.warning(m()) INF_ERR_UNDEF.info(m()) INF_ERR_UNDEF.debug(m()) @@ -974,7 +974,7 @@ class MemoryHandlerTest(BaseTest): self.mem_logger.info(self.next_message()) self.assert_log_lines([]) # This will flush because the level is >= logging.WARNING - self.mem_logger.warn(self.next_message()) + self.mem_logger.warning(self.next_message()) lines = [ ('DEBUG', '1'), ('INFO', '2'), |