[Python-checkins] cpython: Remove unnecessary [].
ezio.melotti
python-checkins at python.org
Tue Oct 2 18:45:25 CEST 2012
http://hg.python.org/cpython/rev/0b650272f58f
changeset: 79414:0b650272f58f
parent: 79412:7b9ecbbca7a7
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Tue Oct 02 19:45:00 2012 +0300
summary:
Remove unnecessary [].
files:
Lib/test/test_logging.py | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -81,7 +81,7 @@
"""Base class for logging tests."""
log_format = "%(name)s -> %(levelname)s: %(message)s"
- expected_log_pat = r"^([\w.]+) -> ([\w]+): ([\d]+)$"
+ expected_log_pat = r"^([\w.]+) -> (\w+): (\d+)$"
message_num = 0
def setUp(self):
@@ -438,7 +438,7 @@
"""Test various filtering possibilities with custom logging levels."""
# Skip the logger name group.
- expected_log_pat = r"^[\w.]+ -> ([\w]+): ([\d]+)$"
+ expected_log_pat = r"^[\w.]+ -> (\w+): (\d+)$"
def setUp(self):
BaseTest.setUp(self)
@@ -999,7 +999,7 @@
"""Tests for the MemoryHandler."""
# Do not bother with a logger name group.
- expected_log_pat = r"^[\w.]+ -> ([\w]+): ([\d]+)$"
+ expected_log_pat = r"^[\w.]+ -> (\w+): (\d+)$"
def setUp(self):
BaseTest.setUp(self)
@@ -1052,7 +1052,7 @@
"""Reading logging config from a .ini-style config file."""
- expected_log_pat = r"^([\w]+) \+\+ ([\w]+)$"
+ expected_log_pat = r"^(\w+) \+\+ (\w+)$"
# config0 is a standard configuration.
config0 = """
@@ -1795,7 +1795,7 @@
"""Reading logging config from a dictionary."""
- expected_log_pat = r"^([\w]+) \+\+ ([\w]+)$"
+ expected_log_pat = r"^(\w+) \+\+ (\w+)$"
# config0 is a standard configuration.
config0 = {
@@ -2691,7 +2691,7 @@
self.assert_log_lines([
('INFO', '1'),
('ERROR', '2'),
- ], pat=r"^[\w.]+ -> ([\w]+): ([\d]+)$")
+ ], pat=r"^[\w.]+ -> (\w+): (\d+)$")
# Now, perform no verification. Our configuration
# should take effect.
@@ -2710,7 +2710,7 @@
self.assert_log_lines([
('INFO', '1'),
('ERROR', '2'),
- ], pat=r"^[\w.]+ -> ([\w]+): ([\d]+)$")
+ ], pat=r"^[\w.]+ -> (\w+): (\d+)$")
# Now, perform verification which transforms the bytes.
@@ -2728,7 +2728,7 @@
self.assert_log_lines([
('INFO', '1'),
('ERROR', '2'),
- ], pat=r"^[\w.]+ -> ([\w]+): ([\d]+)$")
+ ], pat=r"^[\w.]+ -> (\w+): (\d+)$")
def test_baseconfig(self):
d = {
@@ -2832,7 +2832,7 @@
class QueueHandlerTest(BaseTest):
# Do not bother with a logger name group.
- expected_log_pat = r"^[\w.]+ -> ([\w]+): ([\d]+)$"
+ expected_log_pat = r"^[\w.]+ -> (\w+): (\d+)$"
def setUp(self):
BaseTest.setUp(self)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list