Skip to content

Commit

Permalink
Iterate Github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ronny-rentner committed Sep 17, 2024
1 parent b3387fa commit 4508f4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
# Manually install pylint as long as we don't build the wheels
#pip install pylint
- name: Run unit tests
run: python -m pytest ./tests/tests.py
run: python -m unittest
#- name: Run performance tests
#run: python ./tests/performance/performance.py
#- name: Run pylint
Expand Down
4 changes: 3 additions & 1 deletion pymutex/mutex.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
import ctypes, ctypes.util
from . import utils

_pt = ctypes.CDLL(ctypes.util.find_library('pthread'))
pthread_lib = ctypes.util.find_library('pthread')
if pthread_lib:
_pt = ctypes.CDLL(pthread_lib)

# pthread structs' size from pthreadtypes-arch.h
_PTHREAD_MUTEX_ATTRS_SIZE = 4
Expand Down

0 comments on commit 4508f4a

Please sign in to comment.