From: Ezio Melotti Date: Tue, 3 Aug 2010 00:52:46 +0000 (+0000) Subject: Remove the check_warnings. The mkarg warning is raised only with -3 and check_warning... X-Git-Tag: v2.6.6rc1~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=edb3512543e956a984508eaec272388eb40aa741;p=thirdparty%2FPython%2Fcpython.git Remove the check_warnings. The mkarg warning is raised only with -3 and check_warning fails if the error is not raised. --- diff --git a/Lib/test/test_commands.py b/Lib/test/test_commands.py index 5cb6e86b29cc..827f1084d148 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():