summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3/tests/test_refactor.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-07-20 21:09:45 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-07-20 21:09:45 (GMT)
commit4d4b7398a283da7f8cf0e2f7bc7abd9a054b169f (patch)
treec7daac983c574646c66909fff77d2aeb348ce2d9 /Lib/lib2to3/tests/test_refactor.py
parent4879c907ce32655e76c74aee9f49e4be99b862af (diff)
downloadcpython-4d4b7398a283da7f8cf0e2f7bc7abd9a054b169f.zip
cpython-4d4b7398a283da7f8cf0e2f7bc7abd9a054b169f.tar.gz
cpython-4d4b7398a283da7f8cf0e2f7bc7abd9a054b169f.tar.bz2
Merged revisions 74121-74122 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3 ........ r74121 | benjamin.peterson | 2009-07-20 15:40:59 -0500 (Mon, 20 Jul 2009) | 1 line try to make warning tests more robust ........ r74122 | benjamin.peterson | 2009-07-20 15:44:14 -0500 (Mon, 20 Jul 2009) | 1 line platform compat ........
Diffstat (limited to 'Lib/lib2to3/tests/test_refactor.py')
-rw-r--r--Lib/lib2to3/tests/test_refactor.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/lib2to3/tests/test_refactor.py b/Lib/lib2to3/tests/test_refactor.py
index 39ed545..cc47b9d 100644
--- a/Lib/lib2to3/tests/test_refactor.py
+++ b/Lib/lib2to3/tests/test_refactor.py
@@ -46,6 +46,7 @@ class TestRefactoringTool(unittest.TestCase):
def test_print_function_option(self):
with warnings.catch_warnings(record=True) as w:
+ warnings.simplefilter("always", DeprecationWarning)
refactor.RefactoringTool(_DEFAULT_FIXERS, {"print_function" : True})
self.assertEqual(len(w), 1)
msg, = w