diff options
| author | aa-turner <aa-turner@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2022-10-21 13:11:04 +0000 |
|---|---|---|
| committer | aa-turner <aa-turner@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2022-10-21 13:11:04 +0000 |
| commit | 7c65d37a537daa89d71936eff7bd544a3c0f100b (patch) | |
| tree | debcb9419abf54415747eed9f714fcdded3376a6 /docutils | |
| parent | 17c6097866a1e2ce312d74a492c33c8519798f79 (diff) | |
| download | docutils-7c65d37a537daa89d71936eff7bd544a3c0f100b.tar.gz | |
Inline ``suite()`` in alltests
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9163 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils')
| -rwxr-xr-x | docutils/test/alltests.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/docutils/test/alltests.py b/docutils/test/alltests.py index 20d304848..1c26646f0 100755 --- a/docutils/test/alltests.py +++ b/docutils/test/alltests.py @@ -57,12 +57,6 @@ class Tee: self.file.flush() -def suite(): - suite = loadTestModules(DocutilsTestSupport.testroot) - sys.stdout.flush() - return suite - - # must redirect stderr *before* first import of unittest sys.stdout = sys.stderr = Tee('alltests.out') @@ -123,7 +117,7 @@ def path2mod(path): if __name__ == '__main__': - suite = suite() + suite = loadTestModules(DocutilsTestSupport.testroot) print(f'Testing Docutils {docutils.__version__} ' f'with Python {sys.version.split()[0]} ' f'on {time.strftime("%Y-%m-%d at %H:%M:%S")}') |
