summaryrefslogtreecommitdiff
path: root/Lib/test/test_unpack.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_unpack.py')
-rw-r--r--Lib/test/test_unpack.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/Lib/test/test_unpack.py b/Lib/test/test_unpack.py
index 1c0c523d68..472c8343eb 100644
--- a/Lib/test/test_unpack.py
+++ b/Lib/test/test_unpack.py
@@ -1,3 +1,7 @@
+import doctest
+import unittest
+
+
doctests = """
Unpack tuple
@@ -142,10 +146,10 @@ Unpacking to an empty iterable should raise ValueError
__test__ = {'doctests' : doctests}
-def test_main(verbose=False):
- from test import support
- from test import test_unpack
- support.run_doctest(test_unpack, verbose)
+def load_tests(loader, tests, pattern):
+ tests.addTest(doctest.DocTestSuite())
+ return tests
+
if __name__ == "__main__":
- test_main(verbose=True)
+ unittest.main()