From: Brett Cannon Date: Tue, 14 Aug 2007 17:53:30 +0000 (+0000) Subject: Fix a missed instance of test.test_support.guard_warnings_filter (which was X-Git-Tag: v2.6a1~1508 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5a0382eeb69514de320e894456f39009bea33cf7;p=thirdparty%2FPython%2Fcpython.git Fix a missed instance of test.test_support.guard_warnings_filter (which was recently removed). --- diff --git a/Lib/test/test_macostools.py b/Lib/test/test_macostools.py index 40b690a1f6a0..eea3601cf304 100644 --- a/Lib/test/test_macostools.py +++ b/Lib/test/test_macostools.py @@ -52,7 +52,7 @@ class TestMacostools(unittest.TestCase): def test_touched(self): # This really only tests that nothing unforeseen happens. import warnings - with test_support.guard_warnings_filter(): + with test_support.catch_warning(): warnings.filterwarnings('ignore', 'macostools.touched*', DeprecationWarning) macostools.touched(test_support.TESTFN)