mirror of https://github.com/python/cpython
Fix a missed instance of test.test_support.guard_warnings_filter (which was
recently removed).
This commit is contained in:
parent
a53872b09a
commit
5a0382eeb6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue