Change the PyUnit-based tests to use the test_main() approach. This
allows using the tests with unittest.py as a script. The tests will
still run when run as a script themselves.
diff --git a/Lib/test/test_pyclbr.py b/Lib/test/test_pyclbr.py
index ce4d8ac..179b3b5 100644
--- a/Lib/test/test_pyclbr.py
+++ b/Lib/test/test_pyclbr.py
@@ -153,4 +153,10 @@
# pdb plays too many dynamic games
# cm('pdb', pdb)
-run_unittest(PyclbrTest)
+
+def test_main():
+ run_unittest(PyclbrTest)
+
+
+if __name__ == "__main__":
+ test_main()