summaryrefslogtreecommitdiff
path: root/unit_tests/support/doctest/noname_wrapper.py
diff options
context:
space:
mode:
Diffstat (limited to 'unit_tests/support/doctest/noname_wrapper.py')
-rw-r--r--unit_tests/support/doctest/noname_wrapper.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/unit_tests/support/doctest/noname_wrapper.py b/unit_tests/support/doctest/noname_wrapper.py
new file mode 100644
index 0000000..32c0bc5
--- /dev/null
+++ b/unit_tests/support/doctest/noname_wrapper.py
@@ -0,0 +1,12 @@
+def __bootstrap__():
+ """ Import the code in ``noname_wrapped.not_py`` in file as our own name
+
+ This is a simplified version of the wrapper that setuptools writes for
+ dynamic libraries when installing.
+ """
+ import os
+ import imp
+ here = os.path.join(os.path.dirname(__file__))
+ imp.load_source(__name__, os.path.join(here, 'noname_wrapped.not_py'))
+
+__bootstrap__()