mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Rename the unittest test_suite function to not clash with a test module name (unittest.test.test_suite is now unambiguous).
This commit is contained in:
parent
ff889396a8
commit
b35ecf4775
2 changed files with 3 additions and 3 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue