]> granicus.if.org Git - python/commitdiff
Fix a missed instance of test.test_support.guard_warnings_filter (which was
authorBrett Cannon <bcannon@gmail.com>
Tue, 14 Aug 2007 17:53:30 +0000 (17:53 +0000)
committerBrett Cannon <bcannon@gmail.com>
Tue, 14 Aug 2007 17:53:30 +0000 (17:53 +0000)
recently removed).

Lib/test/test_macostools.py

index 40b690a1f6a05363672aa34288fbc12bb65cd589..eea3601cf30454f5d597f579d5e7a91ac0ecda34 100644 (file)
@@ -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)