[Python-checkins] r71370 - python/trunk/Lib/test/test_logging.py
vinay.sajip
python-checkins at python.org
Tue Apr 7 19:18:25 CEST 2009
Author: vinay.sajip
Date: Tue Apr 7 19:18:24 2009
New Revision: 71370
Log:
Issue #5695: Minor tweak to improve the code as suggested by Brett Cannon and as implemented in the Py3K branch.
Modified:
python/trunk/Lib/test/test_logging.py
Modified: python/trunk/Lib/test/test_logging.py
==============================================================================
--- python/trunk/Lib/test/test_logging.py (original)
+++ python/trunk/Lib/test/test_logging.py Tue Apr 7 19:18:24 2009
@@ -914,8 +914,8 @@
def test_warnings(self):
with warnings.catch_warnings():
logging.captureWarnings(True)
- warnings.filterwarnings("always", category=UserWarning)
try:
+ warnings.filterwarnings("always", category=UserWarning)
file = cStringIO.StringIO()
h = logging.StreamHandler(file)
logger = logging.getLogger("py.warnings")
More information about the Python-checkins
mailing list