28 |
|
|
29 |
import platform |
import platform |
30 |
if platform.system() != "Windows": |
if platform.system() != "Windows": |
31 |
import dl |
try: |
32 |
sys.setdlopenflags(dl.RTLD_GLOBAL|dl.RTLD_NOW) |
import dl |
33 |
|
_dlflags = dl.RTLD_GLOBAL|dl.RTLD_NOW |
34 |
|
except: |
35 |
|
# On platforms that unilaterally refuse to provide the 'dl' module |
36 |
|
# we'll just set the value and see if it works. |
37 |
|
print "Note: python 'dl' module not available on this system, guessing value of RTLD_* flags" |
38 |
|
_dlflags = 258 |
39 |
|
|
40 |
|
sys.setdlopenflags(_dlflags) |
41 |
|
|
42 |
class Ascend(unittest.TestCase): |
class Ascend(unittest.TestCase): |
43 |
|
|