mirror of
https://github.com/python/cpython.git
synced 2025-07-30 14:44:10 +00:00
Fix a missed instance of test.test_support.guard_warnings_filter (which was
recently removed).
This commit is contained in:
parent
a53872b09a
commit
5a0382eeb6
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue