aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_py3.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_py3.py')
-rw-r--r--tests/test_py3.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_py3.py b/tests/test_py3.py
index 3a96d9f..909d057 100644
--- a/tests/test_py3.py
+++ b/tests/test_py3.py
@@ -2,7 +2,12 @@
# just a smoke test for osmopy
-import asyncio, random
+import asyncio, random, sys, os
+
+# we have to use this ugly hack to workaroundbrokenrelative imports in py3:
+# from ..osmopy.osmo_ipa import Ctrl
+# does not work as expected
+sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
from osmopy.osmo_ipa import Ctrl
from osmopy import __version__