Issue #13226: Add RTLD_xxx constants to the os module. These constants can by

used with sys.setdlopenflags().
This commit is contained in:
Victor Stinner 2011-10-25 13:34:04 +02:00
parent e0be423297
commit 8b905bd9d4
5 changed files with 54 additions and 5 deletions

View file

@ -984,6 +984,13 @@ class PosixTester(unittest.TestCase):
self.assertIs(b, l)
self.assertEqual(l.count(), 3)
def test_rtld_constants(self):
# check presence of major RTLD_* constants
posix.RTLD_LAZY
posix.RTLD_NOW
posix.RTLD_GLOBAL
posix.RTLD_LOCAL
class PosixGroupsTester(unittest.TestCase):
def setUp(self):