+++ /dev/null
-"""Make tests/ into a package. This allows us to "import tests" and\r
-have tests.all_tests be a TestSuite representing all test cases\r
-from all test_*.py files in tests/."""\r
-# Author: Collin Winter\r
-\r
-import os\r
-import os.path\r
-import unittest\r
-import types\r
-\r
-from . import support\r
-\r
-all_tests = unittest.TestSuite()\r
-\r
-tests_dir = os.path.join(os.path.dirname(__file__), '..', 'tests')\r
-tests = [t[0:-3] for t in os.listdir(tests_dir)\r
- if t.startswith('test_') and t.endswith('.py')]\r
-\r
-loader = unittest.TestLoader()\r
-\r
-for t in tests:\r
- __import__("",globals(),locals(),[t],level=1)\r
- mod = globals()[t]\r
- all_tests.addTests(loader.loadTestsFromModule(mod))\r