Skip to content

Commit 42c9554

Browse files
committed
linux, darwin: sys.setdlopenflags(RTLD_GLOBAL | RTLD_NOW)
1 parent f381a34 commit 42c9554

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/conftest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
Adds docstring and exceptions message sanitizers.
55
"""
66

7+
import sys
8+
9+
if sys.platform == "linux":
10+
sys.setdlopenflags(0x100 | 0x2) # RTLD_GLOBAL | RTLD_NOW
11+
elif sys.platform == "darwin":
12+
sys.setdlopenflags(0x8 | 0x2) # RTLD_GLOBAL | RTLD_NOW
13+
714
import contextlib
815
import difflib
916
import gc

0 commit comments

Comments
 (0)