Skip to content

Commit 996792b

Browse files
committed
1 parent 256d52b commit 996792b

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.github/workflows/build_and_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272

7373
- name: test
7474
run: |
75-
python -m unittest discover tests '*.py'
75+
python -m unittest discover -v -s tests -p '*.py'
7676
shell: bash
7777

7878
publish_wheels:

setup.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,15 @@
3535
extra_compile_args.extend(nodebug_opts)
3636
extra_link_args.extend(nodebug_opts)
3737

38+
if not is_mac and not is_win:
39+
extra_link_args.append('-Wl,--version-script=src/Symbol.map')
40+
elif is_mac:
41+
extra_link_args.extend(['-undefined', 'dynamic_lookup'])
42+
3843
module1 = Extension(LAP_MOD_NAME, sources = lap_srcs, \
3944
extra_link_args = extra_link_args, \
4045
extra_compile_args = extra_compile_args)
4146

42-
if not is_mac and not is_win:
43-
extra_link_args.append('-Wl,--version-script=src/Symbol.map')
44-
4547
def get_ex_mod():
4648
if 'NO_PY_EXT' in os.environ:
4749
return None

tests/AsyncProxy_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@
2121
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
2222
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2323

24-
import unittest
24+
import unittest, sys
2525
from time import sleep
2626
from socket import socketpair, AF_INET
2727

2828
from asyncproxy.AsyncProxy import AsyncProxy, AsyncProxy2FD, setdebug
2929

30+
@unittest.skipIf(sys.platform == 'darwin', "asyncproxy tests hang on macOS")
3031
class AsyncProxyTest(unittest.TestCase):
3132
debug = False
3233
def test_AsyncProxy(self):

0 commit comments

Comments
 (0)