summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_logging.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 515fee9..72dded5 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -912,8 +912,8 @@ class EncodingTest(BaseTest):
class WarningsTest(BaseTest):
def test_warnings(self):
- logging.captureWarnings(True)
with warnings.catch_warnings():
+ logging.captureWarnings(True)
warnings.filterwarnings("always", category=UserWarning)
try:
file = cStringIO.StringIO()