Kaydet (Commit) 5a0382ee authored tarafından Brett Cannon's avatar Brett Cannon

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

recently removed).
üst a53872b0
...@@ -52,7 +52,7 @@ class TestMacostools(unittest.TestCase): ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment