From edb3512543e956a984508eaec272388eb40aa741 Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Tue, 3 Aug 2010 00:52:46 +0000 Subject: [PATCH] Remove the check_warnings. The mkarg warning is raised only with -3 and check_warning fails if the error is not raised. --- Lib/test/test_commands.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Lib/test/test_commands.py b/Lib/test/test_commands.py index 5cb6e86b29c..827f1084d14 100644 --- a/Lib/test/test_commands.py +++ b/Lib/test/test_commands.py @@ -58,11 +58,7 @@ class CommandTests(unittest.TestCase): /\. # and end with the name of the file. ''' - with check_warnings((".*commands.getstatus.. is deprecated", - DeprecationWarning), - ("in 3.x, mkarg has been removed", - DeprecationWarning),): - self.assertTrue(re.match(pat, getstatus("/."), re.VERBOSE)) + self.assertTrue(re.match(pat, getstatus("/."), re.VERBOSE)) def test_main():