Skip to content

Commit

Permalink
Make tests do relative imports
Browse files Browse the repository at this point in the history
  • Loading branch information
coretl committed Aug 12, 2021
1 parent c33d49f commit 5e7d48d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Empty file added tests/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion tests/test_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import atexit
import signal
import pytest
from tests.conftest import SubprocessIOC, PV_PREFIX
from .conftest import SubprocessIOC, PV_PREFIX


def aioca_cleanup():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cothread.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sys
import signal
from tests.conftest import SubprocessIOC, PV_PREFIX
from .conftest import SubprocessIOC, PV_PREFIX
import pytest


Expand Down
2 changes: 1 addition & 1 deletion tests/test_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from softioc import builder

import sim_records
from . import sim_records


def test_records(tmp_path):
Expand Down

0 comments on commit 5e7d48d

Please sign in to comment.