diff options
author | Georg Brandl <georg@python.org> | 2006-07-27 15:05:36 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-07-27 15:05:36 +0000 |
commit | f102fc5f86bf40695f70888a12d6a8c171bd0515 (patch) | |
tree | 9b3f6f7dfd63c43f0e2c2e4eda7e1070d015943f /Lib/test/test_iterlen.py | |
parent | 9aed98feb2a58ae17913fae4f40b8ff24ed17aaf (diff) | |
download | cpython-git-f102fc5f86bf40695f70888a12d6a8c171bd0515.tar.gz |
Add test_main() methods. These three tests were never run
by regrtest.py.
We really need a simpler testing framework.
Diffstat (limited to 'Lib/test/test_iterlen.py')
-rw-r--r-- | Lib/test/test_iterlen.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/test/test_iterlen.py b/Lib/test/test_iterlen.py index bcd0a6f4c2..7d2cfb2360 100644 --- a/Lib/test/test_iterlen.py +++ b/Lib/test/test_iterlen.py @@ -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() + |