Commit b35ecf47 authored by Michael Foord's avatar Michael Foord

Rename the unittest test_suite function to not clash with a test module name...

Rename the unittest test_suite function to not clash with a test module name (unittest.test.test_suite is now unambiguous).
parent ff889396
......@@ -4,7 +4,7 @@ from test import test_support
def test_main():
test_support.run_unittest(unittest.test.test_suite())
test_support.run_unittest(unittest.test.suite())
test_support.reap_children()
......
......@@ -6,7 +6,7 @@ import unittest
here = os.path.dirname(__file__)
loader = unittest.defaultTestLoader
def test_suite():
def suite():
suite = unittest.TestSuite()
for fn in os.listdir(here):
if fn.startswith("test") and fn.endswith(".py"):
......@@ -18,4 +18,4 @@ def test_suite():
if __name__ == "__main__":
unittest.main(defaultTest="test_suite")
unittest.main(defaultTest="suite")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment