Nexus File Manager
v2.0
🏠
Dashboard
⚡
System
🌐
›
lib64
›
python2.7
›
test
Quick:
⬆️ Parent
🌐 Root
🏠 Home
🌍 WWW
📁 Temp
⚙️ Etc
📤 Upload
📁 Create
⚡ WordPress Admin
🔄 Refresh
✏️ test_dl.py
← Back
"""Test dlmodule.c Roger E. Masse revised strategy by Barry Warsaw """ import unittest from test.test_support import verbose, import_module dl = import_module('dl', deprecated=True) sharedlibs = [ ('/usr/lib/libc.so', 'getpid'), ('/lib/libc.so.6', 'getpid'), ('/usr/bin/cygwin1.dll', 'getpid'), ('/usr/lib/libc.dylib', 'getpid'), ] # (also, "dl" is deprecated in favor of ctypes) @unittest._skipInRpmBuild('fails on 64-bit builds: ' 'module dl requires sizeof(int) == sizeof(long) == sizeof(char*)') def test_main(): for s, func in sharedlibs: try: if verbose: print 'trying to open:', s, l = dl.open(s) except dl.error, err: if verbose: print 'failed', repr(str(err)) pass else: if verbose: print 'succeeded...', l.call(func) l.close() if verbose: print 'worked!' break else: raise unittest.SkipTest, 'Could not open any shared libraries' if __name__ == '__main__': test_main()
💻
System Info
Current path
/lib64/python2.7/test
Contents
10 folders, 1437 files
Disk free
100.06 GB
PHP version
8.3.30
🚀
Quick Actions
📍 Script location
🌐 Web root
🗑️ Temp
📁 /lib64/python2.7/test
⚡ Nexus File Manager • 1447 items