Skip to content

Commit c9756a8

Browse files
authored
Use absolute imports and remove __init__.py from tests. (#160)
1 parent d3ce7c0 commit c9756a8

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

.github/workflows/freebsd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ jobs:
4343
/usr/local/bin/pip install -U pip setuptools wheel
4444
/usr/local/bin/pip install -r dev_requirements.txt
4545
/usr/local/bin/python3.9 setup.py build_ext --inplace
46-
pytest
46+
python -m pytest
4747
python3.9 setup.py bdist_wheel

.github/workflows/integration.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
pip install -U pip setuptools wheel
4646
pip install -r dev_requirements.txt
4747
python setup.py build_ext --inplace
48-
pytest
48+
python -m pytest
4949
- name: build and install the wheel
5050
run: |
51-
python setup.py bdist_wheel
51+
python setup.py bdist_wheel

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Building this repository requires a recursive checkout of submodules, and buildi
2222
```bash
2323
git clone --recursse-submodules https://github.com/redis/hiredis-py
2424
python setup.py build_ext --inplace
25-
pytest
25+
python -m pytest
2626
```
2727

2828
### Requirements

hiredis/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from .hiredis import Reader, HiredisError, pack_command, ProtocolError, ReplyError
2-
from .version import __version__
1+
from hiredis.hiredis import Reader, HiredisError, pack_command, ProtocolError, ReplyError
2+
from hiredis.version import __version__
33

44
__all__ = [
55
"Reader",

tests/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)