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 5cb6e86..827f108 100644
--- a/Lib/test/test_commands.py
+++ b/Lib/test/test_commands.py
@@ -58,11 +58,7 @@
                   /\.          # 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():