diff options
| author | Barry Warsaw | 2009-07-16 22:36:06 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2009-07-16 22:36:06 -0400 |
| commit | 1bfc7f302f2730a679b2a4a103c2978d8e7c70ae (patch) | |
| tree | 3d69d43841dcf838e9778d2e83cc3e58a7b9ed20 /src/mailman/tests/test_documentation.py | |
| parent | ac3af23142c9b2417759f90837d68e15866b6793 (diff) | |
| download | mailman-1bfc7f302f2730a679b2a4a103c2978d8e7c70ae.tar.gz mailman-1bfc7f302f2730a679b2a4a103c2978d8e7c70ae.tar.zst mailman-1bfc7f302f2730a679b2a4a103c2978d8e7c70ae.zip | |
Diffstat (limited to 'src/mailman/tests/test_documentation.py')
| -rw-r--r-- | src/mailman/tests/test_documentation.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mailman/tests/test_documentation.py b/src/mailman/tests/test_documentation.py index 501b13a61..06cd3f8b2 100644 --- a/src/mailman/tests/test_documentation.py +++ b/src/mailman/tests/test_documentation.py @@ -174,11 +174,13 @@ def test_suite(): else: layer = getattr(sys.modules[package_path], 'layer', SMTPLayer) for filename in os.listdir(docsdir): + base, extension = os.path.splitext(filename) if os.path.splitext(filename)[1] == '.txt': - doctest_files[filename] = ( + module_path = package_path + '.' + base + doctest_files[module_path] = ( os.path.join(docsdir, filename), layer) - for filename in sorted(doctest_files): - path, layer = doctest_files[filename] + for module_path in sorted(doctest_files): + path, layer = doctest_files[module_path] test = doctest.DocFileSuite( path, package='mailman', |
