Skip to content

Commit 7809ae8

Browse files
authored
Merge pull request #65 from Guardis-AI/master
Fix Pytest and Github Workflow
2 parents c31baa7 + ff86d33 commit 7809ae8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: [3.5, 3.6, 3.7, 3.8]
18+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
1919

2020
steps:
2121
- uses: actions/checkout@v2
2222
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v1
23+
uses: actions/setup-python@v4
2424
with:
2525
python-version: ${{ matrix.python-version }}
2626
- name: Install dependencies

tests/test_probing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def mock_select(*args):
2424
"set a mock Probe response event in motion for the same socket"
2525
global sck
2626
if sck and sck.getsockname()[1] == MULTICAST_PORT:
27-
key = selectors.SelectorKey(sck.makefile(), sck.fileno(), [], "")
27+
key = selectors.SelectorKey(sck, sck.fileno(), [], "")
2828
# to mock just one response we just nullify the sock
2929
sck = None
3030
return [(key, selectors.EVENT_READ)]

0 commit comments

Comments
 (0)