diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2020-01-31 08:17:24 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2020-01-31 08:17:24 +0000 |
| commit | 9aeb8dae7965f315ef4ee2902ad5712e92574d29 (patch) | |
| tree | 2225e20c3162b9fd08d2271bb96ff15df32d01c7 /docutils/test/test_transforms/test_footnotes.py | |
| parent | 0ddb9c2b6a3eb4da6d00f3bc693156fc5026e67f (diff) | |
| download | docutils-9aeb8dae7965f315ef4ee2902ad5712e92574d29.tar.gz | |
Restore support for running tests stand-alone.
After the switch to absolute imports, individual test could no
longer be run in from their directory (import error).
This patch makes the `pythonpath` expansion in the test
subdirectories' ``__init__`` files functional again.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8481 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/test_transforms/test_footnotes.py')
| -rwxr-xr-x | docutils/test/test_transforms/test_footnotes.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docutils/test/test_transforms/test_footnotes.py b/docutils/test/test_transforms/test_footnotes.py index 5920215df..a7104f541 100755 --- a/docutils/test/test_transforms/test_footnotes.py +++ b/docutils/test/test_transforms/test_footnotes.py @@ -9,7 +9,9 @@ Tests for docutils.transforms.references.Footnotes. """ from __future__ import absolute_import -from . import DocutilsTestSupport +if __name__ == '__main__': + import __init__ +from test_transforms import DocutilsTestSupport from docutils.transforms.references import Footnotes from docutils.parsers.rst import Parser |
