mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Add test_main() methods. These three tests were never run
by regrtest.py. We really need a simpler testing framework.
This commit is contained in:
parent
9aed98feb2
commit
f102fc5f86
3 changed files with 17 additions and 6 deletions
|
|
@ -235,9 +235,7 @@ class TestSeqIterReversed(TestInvariantWithoutMutations):
|
|||
self.assertEqual(len(it), 0)
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
def test_main():
|
||||
unittests = [
|
||||
TestRepeat,
|
||||
TestXrange,
|
||||
|
|
@ -255,3 +253,7 @@ if __name__ == "__main__":
|
|||
TestSeqIterReversed,
|
||||
]
|
||||
test_support.run_unittest(*unittests)
|
||||
|
||||
if __name__ == "__main__":
|
||||
test_main()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue