summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_commands.py')
-rw-r--r--Lib/test/test_commands.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/Lib/test/test_commands.py b/Lib/test/test_commands.py
index 54ae676..77372c5 100644
--- a/Lib/test/test_commands.py
+++ b/Lib/test/test_commands.py
@@ -42,4 +42,10 @@ class CommandTests(unittest.TestCase):
self.assert_(re.match(pat, getstatus("/bin/ls"), re.VERBOSE))
-run_unittest(CommandTests)
+
+def test_main():
+ run_unittest(CommandTests)
+
+
+if __name__ == "__main__":
+ test_main()