summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_defaultdict.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-07-27 15:05:36 (GMT)
committerGeorg Brandl <georg@python.org>2006-07-27 15:05:36 (GMT)
commitf102fc5f86bf40695f70888a12d6a8c171bd0515 (patch)
tree9b3f6f7dfd63c43f0e2c2e4eda7e1070d015943f /Lib/test/test_defaultdict.py
parent9aed98feb2a58ae17913fae4f40b8ff24ed17aaf (diff)
downloadcpython-f102fc5f86bf40695f70888a12d6a8c171bd0515.zip
cpython-f102fc5f86bf40695f70888a12d6a8c171bd0515.tar.gz
cpython-f102fc5f86bf40695f70888a12d6a8c171bd0515.tar.bz2
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_defaultdict.py')
-rw-r--r--Lib/test/test_defaultdict.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/test_defaultdict.py b/Lib/test/test_defaultdict.py
index b5a6628..134b5a8 100644
--- a/Lib/test/test_defaultdict.py
+++ b/Lib/test/test_defaultdict.py
@@ -4,6 +4,7 @@ import os
import copy
import tempfile
import unittest
+from test import test_support
from collections import defaultdict
@@ -131,5 +132,8 @@ class TestDefaultDict(unittest.TestCase):
self.assertEqual(d2, d1)
+def test_main():
+ test_support.run_unittest(TestDefaultDict)
+
if __name__ == "__main__":
- unittest.main()
+ test_main()