diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2009-04-07 17:18:24 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2009-04-07 17:18:24 (GMT) |
commit | 14bf0a0a379003bae2c997a98a40c6c9f9553157 (patch) | |
tree | 6acb4c975f102d6bdc5cc05345b01a37dff175b4 | |
parent | dda7b1990b58c116897ca1501d8740e161bc4126 (diff) | |
download | cpython-14bf0a0a379003bae2c997a98a40c6c9f9553157.zip cpython-14bf0a0a379003bae2c997a98a40c6c9f9553157.tar.gz cpython-14bf0a0a379003bae2c997a98a40c6c9f9553157.tar.bz2 |
Issue #5695: Minor tweak to improve the code as suggested by Brett Cannon and as implemented in the Py3K branch.
-rw-r--r-- | Lib/test/test_logging.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 72dded5..adeee7d 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -914,8 +914,8 @@ class WarningsTest(BaseTest): 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") |