/[ascend]/trunk/test.py
ViewVC logotype

Diff of /trunk/test.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1280 by johnpye, Sat Feb 10 10:47:23 2007 UTC revision 1288 by johnpye, Sun Feb 18 12:05:53 2007 UTC
# Line 28  import atexit Line 28  import atexit
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    

Legend:
Removed from v.1280  
changed lines
  Added in v.1288

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22