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:
parent
7b688250d1
commit
edb3512543
|
@ -58,11 +58,7 @@ 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",
|
self.assertTrue(re.match(pat, getstatus("/."), re.VERBOSE))
|
||||||
DeprecationWarning),
|
|
||||||
("in 3.x, mkarg has been removed",
|
|
||||||
DeprecationWarning),):
|
|
||||||
self.assertTrue(re.match(pat, getstatus("/."), re.VERBOSE))
|
|
||||||
|
|
||||||
|
|
||||||
def test_main():
|
def test_main():
|
||||||
|
|
Loading…
Reference in New Issue