mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +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
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue