diff --git a/cothread/load_ca.py b/cothread/load_ca.py index ffe6098..186d4a1 100644 --- a/cothread/load_ca.py +++ b/cothread/load_ca.py @@ -38,7 +38,7 @@ import platform import os -from .epicsarch import epics_host_arch +from epicsarch import epics_host_arch # Figure out the libraries that need to be loaded and the loading method. load_library = ctypes.cdll.LoadLibrary diff --git a/tests/test_unittest.db b/tests/soft_records.db similarity index 100% rename from tests/test_unittest.db rename to tests/soft_records.db diff --git a/tests/test_unittest.py b/tests/test_catools.py similarity index 86% rename from tests/test_unittest.py rename to tests/test_catools.py index 6f96294..1ae3522 100755 --- a/tests/test_unittest.py +++ b/tests/test_catools.py @@ -1,18 +1,18 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- - +import os from cothread import counittest, catools +here = os.path.dirname(__file__) + + class SoftIocTest(counittest.TestCase): iocexe = 'softIoc' iocload = ( - ('tests/test_unittest.db', 'P=$(TESTPREFIX)'), + (os.path.join(here, 'soft_records.db'), 'P=$(TESTPREFIX)'), ) iocpost = "dbl\r" - def test_nothing(self): - self.assertTrue(True) - def test_ai(self): # wait for CA server to start self.assertIOCRunning()