Remove the check_warnings. The mkarg warning is raised only with -3 and check_warning fails if the error is not raised.

This commit is contained in:
Ezio Melotti 2010-08-03 00:52:46 +00:00
parent 7b688250d1
commit edb3512543
1 changed files with 1 additions and 5 deletions

View File

@ -58,10 +58,6 @@ class CommandTests(unittest.TestCase):
/\. # and end with the name of the file. /\. # 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))