Fix a missed instance of test.test_support.guard_warnings_filter (which was

recently removed).
This commit is contained in:
Brett Cannon 2007-08-14 17:53:30 +00:00
parent a53872b09a
commit 5a0382eeb6
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ class TestMacostools(unittest.TestCase):
def test_touched(self): def test_touched(self):
# This really only tests that nothing unforeseen happens. # This really only tests that nothing unforeseen happens.
import warnings import warnings
with test_support.guard_warnings_filter(): with test_support.catch_warning():
warnings.filterwarnings('ignore', 'macostools.touched*', warnings.filterwarnings('ignore', 'macostools.touched*',
DeprecationWarning) DeprecationWarning)
macostools.touched(test_support.TESTFN) macostools.touched(test_support.TESTFN)