summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2007-08-14 17:53:30 (GMT)
committerBrett Cannon <bcannon@gmail.com>2007-08-14 17:53:30 (GMT)
commit5a0382eeb69514de320e894456f39009bea33cf7 (patch)
tree20040d765c632508d286987f8ff0c572fd142a76 /Lib
parenta53872b09a60129489b204b5c1285e6a6bbcb914 (diff)
downloadcpython-5a0382eeb69514de320e894456f39009bea33cf7.zip
cpython-5a0382eeb69514de320e894456f39009bea33cf7.tar.gz
cpython-5a0382eeb69514de320e894456f39009bea33cf7.tar.bz2
Fix a missed instance of test.test_support.guard_warnings_filter (which was
recently removed).
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_macostools.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_macostools.py b/Lib/test/test_macostools.py
index 40b690a..eea3601 100644
--- a/Lib/test/test_macostools.py
+++ b/Lib/test/test_macostools.py
@@ -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)