Skip to content

Commit

Permalink
linux, darwin: sys.setdlopenflags(RTLD_GLOBAL | RTLD_NOW)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralf W. Grosse-Kunstleve committed Oct 25, 2022
1 parent f381a34 commit 42c9554
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
Adds docstring and exceptions message sanitizers.
"""

import sys

if sys.platform == "linux":
sys.setdlopenflags(0x100 | 0x2) # RTLD_GLOBAL | RTLD_NOW
elif sys.platform == "darwin":
sys.setdlopenflags(0x8 | 0x2) # RTLD_GLOBAL | RTLD_NOW

import contextlib
import difflib
import gc
Expand Down

0 comments on commit 42c9554

Please sign in to comment.