summaryrefslogtreecommitdiff
path: root/Lib/test/test_timeout.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2003-02-17 14:51:41 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2003-02-17 14:51:41 +0000
commit49ec50e834ad4af3043e655c4010ddb2fe57f13a (patch)
treef04139cca5a52bc5276ed724139986955d81b798 /Lib/test/test_timeout.py
parentef887fabd96f62e9a265e2d597e2a155cf7cfd8b (diff)
downloadcpython-49ec50e834ad4af3043e655c4010ddb2fe57f13a.tar.gz
Actually run these tests from regrtest.py.
There was no test_main() and the main body was protected by if __name__ == '__main__' so the test didn't happen on import either.
Diffstat (limited to 'Lib/test/test_timeout.py')
-rw-r--r--Lib/test/test_timeout.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_timeout.py b/Lib/test/test_timeout.py
index 65470d7ef1..6510ca9c9a 100644
--- a/Lib/test/test_timeout.py
+++ b/Lib/test/test_timeout.py
@@ -175,11 +175,11 @@ class TimeoutTestCase(unittest.TestCase):
pass
-def main():
+def test_main():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(CreationTestCase))
suite.addTest(unittest.makeSuite(TimeoutTestCase))
test_support.run_suite(suite)
if __name__ == "__main__":
- main()
+ test_main()