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:
Georg Brandl 2006-07-27 15:05:36 +00:00
parent 9aed98feb2
commit f102fc5f86
3 changed files with 17 additions and 6 deletions

View file

@ -1,4 +1,5 @@
from unittest import TestCase, main
from unittest import TestCase
from test import test_support
import uuid
def importable(name):
@ -392,5 +393,9 @@ class TestUUID(TestCase):
equal(u, uuid.UUID(v))
equal(str(u), v)
def test_main():
test_support.run_unittest(TestUUID)
if __name__ == '__main__':
main()
test_main()