summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle_test/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib/idle_test/__init__.py')
-rw-r--r--Lib/idlelib/idle_test/__init__.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/idlelib/idle_test/__init__.py b/Lib/idlelib/idle_test/__init__.py
new file mode 100644
index 0000000..1bc9536
--- /dev/null
+++ b/Lib/idlelib/idle_test/__init__.py
@@ -0,0 +1,9 @@
+from os.path import dirname
+
+def load_tests(loader, standard_tests, pattern):
+ this_dir = dirname(__file__)
+ top_dir = dirname(dirname(this_dir))
+ package_tests = loader.discover(start_dir=this_dir, pattern='test*.py',
+ top_level_dir=top_dir)
+ standard_tests.addTests(package_tests)
+ return standard_tests